diff options
| author | bh <qn+git@epicurus.dev> | 2026-03-24 12:56:25 +0800 |
|---|---|---|
| committer | bh <qn+git@epicurus.dev> | 2026-03-24 12:56:25 +0800 |
| commit | ab3024d33837e1f1e7741f64e1f60abff5a27cb3 (patch) | |
| tree | 3e5bddccf76f6f04359ca058a07f8a56d25b570a | |
| parent | b88dae10a8fef1ece923aad807b94aef6116e770 (diff) | |
opencode: add ai model configuration
| -rw-r--r-- | opencode/.config/opencode/opencode.json | 128 |
1 files changed, 127 insertions, 1 deletions
diff --git a/opencode/.config/opencode/opencode.json b/opencode/.config/opencode/opencode.json index 2ae9375..60f1379 100644 --- a/opencode/.config/opencode/opencode.json +++ b/opencode/.config/opencode/opencode.json @@ -21,5 +21,131 @@ "test": { "color": "#D38CFF" } - } + }, + + "provider": { + "google": { + "models": { + "antigravity-gemini-3-pro": { + "name": "Gemini 3 Pro (Antigravity)", + "limit": { "context": 1048576, "output": 65535 }, + "modalities": { "input": ["text", "image", "pdf"], "output": ["text"] }, + "variants": { + "low": { "thinkingLevel": "low" }, + "high": { "thinkingLevel": "high" } + } + }, + "antigravity-gemini-3.1-pro": { + "name": "Gemini 3.1 Pro (Antigravity)", + "limit": { "context": 1048576, "output": 65535 }, + "modalities": { "input": ["text", "image", "pdf"], "output": ["text"] }, + "variants": { + "low": { "thinkingLevel": "low" }, + "high": { "thinkingLevel": "high" } + } + }, + "antigravity-gemini-3-flash": { + "name": "Gemini 3 Flash (Antigravity)", + "limit": { "context": 1048576, "output": 65536 }, + "modalities": { "input": ["text", "image", "pdf"], "output": ["text"] }, + "variants": { + "minimal": { "thinkingLevel": "minimal" }, + "low": { "thinkingLevel": "low" }, + "medium": { "thinkingLevel": "medium" }, + "high": { "thinkingLevel": "high" } + } + }, + "antigravity-claude-sonnet-4-6": { + "name": "Claude Sonnet 4.6 (Antigravity)", + "limit": { "context": 200000, "output": 64000 }, + "modalities": { "input": ["text", "image", "pdf"], "output": ["text"] } + }, + "antigravity-claude-opus-4-6-thinking": { + "name": "Claude Opus 4.6 Thinking (Antigravity)", + "limit": { "context": 200000, "output": 64000 }, + "modalities": { "input": ["text", "image", "pdf"], "output": ["text"] }, + "variants": { + "low": { "thinkingConfig": { "thinkingBudget": 8192 } }, + "max": { "thinkingConfig": { "thinkingBudget": 32768 } } + } + }, + "gemini-2.5-flash": { + "name": "Gemini 2.5 Flash (Gemini CLI)", + "limit": { "context": 1048576, "output": 65536 }, + "modalities": { "input": ["text", "image", "pdf"], "output": ["text"] } + }, + "gemini-2.5-pro": { + "name": "Gemini 2.5 Pro (Gemini CLI)", + "limit": { "context": 1048576, "output": 65536 }, + "modalities": { "input": ["text", "image", "pdf"], "output": ["text"] } + }, + "gemini-3-flash-preview": { + "name": "Gemini 3 Flash Preview (Gemini CLI)", + "limit": { "context": 1048576, "output": 65536 }, + "modalities": { "input": ["text", "image", "pdf"], "output": ["text"] } + }, + "gemini-3-pro-preview": { + "name": "Gemini 3 Pro Preview (Gemini CLI)", + "limit": { "context": 1048576, "output": 65535 }, + "modalities": { "input": ["text", "image", "pdf"], "output": ["text"] } + }, + "gemini-3.1-pro-preview": { + "name": "Gemini 3.1 Pro Preview (Gemini CLI)", + "limit": { "context": 1048576, "output": 65535 }, + "modalities": { "input": ["text", "image", "pdf"], "output": ["text"] } + }, + "gemini-3.1-pro-preview-customtools": { + "name": "Gemini 3.1 Pro Preview Custom Tools (Gemini CLI)", + "limit": { "context": 1048576, "output": 65535 }, + "modalities": { "input": ["text", "image", "pdf"], "output": ["text"] } + } + } + }, + "anthropic": { + "models": { + "claude-opus-4-6": { + "name": "Claude Opus 4.6", + "limit": { "context": 1048576, "output": 131072 }, + "modalities": { "input": ["text", "image", "pdf"], "output": ["text"] } + }, + "claude-sonnet-4-6": { + "name": "Claude Sonnet 4.6", + "limit": { "context": 1048576, "output": 65536 }, + "modalities": { "input": ["text", "image", "pdf"], "output": ["text"] } + }, + "claude-haiku-4-5-20251001": { + "name": "Claude Haiku 4.5", + "limit": { "context": 200000, "output": 65536 }, + "modalities": { "input": ["text", "image", "pdf"], "output": ["text"] } + } + } + }, + "openai": { + "models": { + "gpt-5.4": { + "name": "GPT-5.4", + "limit": { "context": 1048576, "output": 131072 }, + "modalities": { "input": ["text", "image"], "output": ["text"] }, + "variants": { + "low": { "reasoning": { "effort": "low" } }, + "medium": { "reasoning": { "effort": "medium" } }, + "high": { "reasoning": { "effort": "high" } }, + "xhigh": { "reasoning": { "effort": "xhigh" } } + } + }, + "gpt-5.4-mini": { + "name": "GPT-5.4 Mini", + "limit": { "context": 400000, "output": 131072 }, + "modalities": { "input": ["text", "image"], "output": ["text"] }, + "variants": { + "low": { "reasoning": { "effort": "low" } }, + "medium": { "reasoning": { "effort": "medium" } }, + "high": { "reasoning": { "effort": "high" } }, + "xhigh": { "reasoning": { "effort": "xhigh" } } + } + }, + } + } + }, + } |
