From ab3024d33837e1f1e7741f64e1f60abff5a27cb3 Mon Sep 17 00:00:00 2001 From: bh Date: Tue, 24 Mar 2026 12:56:25 +0800 Subject: opencode: add ai model configuration --- opencode/.config/opencode/opencode.json | 128 +++++++++++++++++++++++++++++++- 1 file changed, 127 insertions(+), 1 deletion(-) 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" } } + } + }, + } + } + }, + } -- cgit v1.2.3