refactor: 从 CPA 换成 LiteLLM
This commit is contained in:
49
opencode.json
Normal file
49
opencode.json
Normal 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 }
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user