forked from agents/opencode
131 lines
4.4 KiB
JSON
131 lines
4.4 KiB
JSON
{
|
|
"$schema": "https://opencode.ai/config.json",
|
|
"plugin": ["oh-my-openagent@latest"],
|
|
"autoupdate": false,
|
|
"model": "anthropic/claude-opus-4-6",
|
|
"small_model": "openai/gpt-5.4-mini",
|
|
"provider": {
|
|
"anthropic": {
|
|
"npm": "@ai-sdk/anthropic",
|
|
"options": {
|
|
"baseURL": "{env:AI_GATEWAY_BASE_URL}/v1",
|
|
"apiKey": "{env:AI_GATEWAY_API_KEY}"
|
|
},
|
|
"models": {
|
|
"claude-opus-4-7": {
|
|
"name": "Claude Opus 4.7",
|
|
"reasoning": true,
|
|
"modalities": { "input": ["text", "image", "pdf"], "output": ["text"] },
|
|
"limit": { "context": 1000000, "output": 128000 }
|
|
},
|
|
"claude-sonnet-4-6": {
|
|
"name": "Claude Sonnet 4.6",
|
|
"reasoning": true,
|
|
"modalities": { "input": ["text", "image", "pdf"], "output": ["text"] },
|
|
"limit": { "context": 200000, "output": 64000 }
|
|
},
|
|
"claude-haiku-4-5": {
|
|
"name": "Claude Haiku 4.5",
|
|
"reasoning": true,
|
|
"modalities": { "input": ["text", "image", "pdf"], "output": ["text"] },
|
|
"limit": { "context": 200000, "output": 64000 }
|
|
}
|
|
}
|
|
},
|
|
"openai": {
|
|
"npm": "@ai-sdk/openai",
|
|
"options": {
|
|
"baseURL": "{env:AI_GATEWAY_BASE_URL}/v1",
|
|
"apiKey": "{env:AI_GATEWAY_API_KEY}"
|
|
},
|
|
"models": {
|
|
"gpt-5.4": {
|
|
"name": "GPT-5.4",
|
|
"reasoning": true,
|
|
"modalities": { "input": ["text", "image", "pdf"], "output": ["text"] },
|
|
"limit": { "context": 1050000, "input": 922000, "output": 128000 }
|
|
},
|
|
"gpt-5.4-mini": {
|
|
"name": "GPT-5.4 mini",
|
|
"reasoning": true,
|
|
"modalities": { "input": ["text", "image"], "output": ["text"] },
|
|
"limit": { "context": 400000, "input": 272000, "output": 128000 }
|
|
}
|
|
}
|
|
},
|
|
// "google": {
|
|
// "npm": "@ai-sdk/google",
|
|
// "options": {
|
|
// "baseURL": "{env:AI_GATEWAY_BASE_URL}/v1beta",
|
|
// "apiKey": "{env:AI_GATEWAY_API_KEY}"
|
|
// },
|
|
// "models": {
|
|
// "gemini-3.1-pro-preview": {
|
|
// "name": "Gemini 3.1 Pro",
|
|
// "reasoning": true,
|
|
// "modalities": { "input": ["text", "image", "video", "audio", "pdf"], "output": ["text"] },
|
|
// "limit": { "context": 1048576, "output": 65536 }
|
|
// },
|
|
// "gemini-3-flash-preview": {
|
|
// "name": "Gemini 3 Flash",
|
|
// "reasoning": true,
|
|
// "modalities": { "input": ["text", "image", "video", "audio", "pdf"], "output": ["text"] },
|
|
// "limit": { "context": 1048576, "output": 65536 }
|
|
// }
|
|
// }
|
|
// },
|
|
"ai-gateway": {
|
|
"name": "AI Gateway",
|
|
"npm": "@ai-sdk/openai-compatible",
|
|
"options": {
|
|
"baseURL": "{env:AI_GATEWAY_BASE_URL}/v1",
|
|
"apiKey": "{env:AI_GATEWAY_API_KEY}"
|
|
},
|
|
"models": {
|
|
"gemini-3.1-pro-preview": {
|
|
"name": "Gemini 3.1 Pro",
|
|
"reasoning": true,
|
|
"modalities": { "input": ["text", "image"], "output": ["text"] },
|
|
"limit": { "context": 128000, "output": 128000 } // github copilot only has a 128k context size
|
|
},
|
|
"glm-5.1": {
|
|
"name": "GLM-5.1",
|
|
"reasoning": true,
|
|
"modalities": { "input": ["text"], "output": ["text"] },
|
|
"limit": { "context": 204800, "output": 131072 }
|
|
},
|
|
"glm-5": {
|
|
"name": "GLM-5",
|
|
"reasoning": true,
|
|
"modalities": { "input": ["text"], "output": ["text"] },
|
|
"limit": { "context": 204800, "output": 131072 }
|
|
},
|
|
"kimi-k2p5-turbo": {
|
|
"name": "Kimi K2.5 Turbo",
|
|
"reasoning": true,
|
|
"modalities": { "input": ["text", "image"], "output": ["text"] },
|
|
"limit": { "context": 256000, "output": 256000 }
|
|
},
|
|
"kimi-k2.5": {
|
|
"name": "Kimi K2.5",
|
|
"reasoning": true,
|
|
"modalities": { "input": ["text", "image", "video"], "output": ["text"] },
|
|
"limit": { "context": 262144, "output": 262144 }
|
|
},
|
|
"minimax-m2.7": {
|
|
"name": "MiniMax M2.7",
|
|
"reasoning": true,
|
|
"modalities": { "input": ["text"], "output": ["text"] },
|
|
"limit": { "context": 204800, "output": 131072 }
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"permission": {
|
|
"*": "allow"
|
|
},
|
|
"experimental": {
|
|
"disable_paste_summary": true
|
|
}
|
|
}
|