1
0
forked from agents/opencode
Files
opencode-config/opencode.jsonc
imbytecat 8573f89db7 feat: 更新代理模型参考链接并调整小模型配置
- 更新代理模型参考链接指向新的代理库存文档位置。
- 将小模型配置更新为使用cpa-openai/glm-4.7。
2026-02-24 14:46:39 +08:00

62 lines
1.7 KiB
JSON

{
"$schema": "https://opencode.ai/config.json",
"autoupdate": false,
"theme": "system",
"model": "cpa-openai/gpt-5.3-codex",
"small_model": "cpa-openai/glm-4.7",
"experimental": {
"disable_paste_summary": true
},
"plugin": ["oh-my-opencode@latest"],
"provider": {
// ref: https://models.dev/
"cpa-openai": {
"name": "CPA OpenAI",
"npm": "@ai-sdk/openai",
"options": {
"baseURL": "https://cpa.furtherverse.com/v1",
"apiKey": "{env:CPA_API_KEY}",
"setCacheKey": true
},
"models": {
"gpt-5.3-codex": {
"name": "GPT-5.3-Codex",
"reasoning": true,
"modalities": {
"input": ["text", "image", "pdf"],
"output": ["text"]
},
"limit": { "context": 400000, "input": 272000, "output": 128000 }
},
"gpt-5.2": {
"name": "GPT-5.2",
"reasoning": true,
"modalities": {
"input": ["text", "image"],
"output": ["text"]
},
"limit": { "context": 400000, "input": 272000, "output": 128000 }
},
"gpt-5.1-codex-mini": {
"name": "GPT-5.1-Codex-Mini",
"reasoning": true,
"modalities": {
"input": ["text", "image"],
"output": ["text"]
},
"limit": { "context": 400000, "input": 272000, "output": 128000 }
},
"glm-4.7": {
"name": "GLM-4.7",
"reasoning": true,
"modalities": {
"input": ["text"],
"output": ["text"]
},
"limit": { "context": 204800, "output": 131072 }
}
}
}
}
}