1
0
forked from agents/opencode

refactor: 从 CPA 换成 LiteLLM

This commit is contained in:
2026-03-04 16:34:10 +08:00
parent 8978eeb5de
commit 9c768870e3
14 changed files with 51 additions and 1327 deletions

49
opencode.json Normal file
View File

@@ -0,0 +1,49 @@
{
"$schema": "https://opencode.ai/config.json",
"autoupdate": false,
"model": "openai/gpt-5.3-codex",
"small_model": "openai/gpt-5.1-codex-mini",
"experimental": {
"disable_paste_summary": true
},
"plugin": ["oh-my-opencode@latest"],
"disabled_providers": ["opencode"],
"provider": {
"openai": {
"npm": "@ai-sdk/openai",
"options": {
"baseURL": "{env:LITELLM_BASE_URL}/v1",
"apiKey": "{env:LITELLM_API_KEY}"
},
"models": {
"gpt-5.2": {
"name": "GPT-5.2",
"reasoning": true,
"modalities": {
"input": ["text", "image"],
"output": ["text"]
},
"limit": { "context": 400000, "input": 272000, "output": 128000 }
},
"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.1-codex-mini": {
"name": "GPT-5.1-Codex-Mini",
"reasoning": true,
"modalities": {
"input": ["text", "image"],
"output": ["text"]
},
"limit": { "context": 400000, "input": 272000, "output": 128000 }
}
}
}
}
}