forked from agents/opencode
refactor: 拆分 litellm 统一提供商为独立 provider 配置
This commit is contained in:
@@ -1,20 +1,16 @@
|
||||
{
|
||||
"$schema": "https://opencode.ai/config.json",
|
||||
"autoupdate": false,
|
||||
"model": "litellm/claude-opus-4-6",
|
||||
"small_model": "litellm/claude-haiku-4-5",
|
||||
"model": "anthropic/claude-opus-4-6",
|
||||
"small_model": "anthropic/claude-haiku-4-5",
|
||||
"plugin": ["oh-my-opencode@latest"],
|
||||
"provider": {
|
||||
"litellm": {
|
||||
"name": "LiteLLM",
|
||||
"npm": "@ai-sdk/openai-compatible",
|
||||
"anthropic": {
|
||||
"options": {
|
||||
"baseURL": "https://ai.furtherverse.com/v1",
|
||||
"apiKey": "{env:LITELLM_API_KEY}",
|
||||
"setCacheKey": true
|
||||
"baseURL": "{env:LITELLM_BASE_URL}/v1",
|
||||
"apiKey": "{env:LITELLM_API_KEY}"
|
||||
},
|
||||
"models": {
|
||||
// Anthropic
|
||||
"claude-opus-4-6": {
|
||||
"name": "Claude Opus 4.6",
|
||||
"reasoning": true,
|
||||
@@ -32,23 +28,15 @@
|
||||
"reasoning": true,
|
||||
"modalities": { "input": ["text", "image", "pdf"], "output": ["text"] },
|
||||
"limit": { "context": 200000, "output": 64000 }
|
||||
},
|
||||
|
||||
// Google
|
||||
"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 }
|
||||
},
|
||||
|
||||
// OpenAI
|
||||
}
|
||||
}
|
||||
},
|
||||
"openai": {
|
||||
"options": {
|
||||
"baseURL": "{env:LITELLM_BASE_URL}/v1",
|
||||
"apiKey": "{env:LITELLM_API_KEY}"
|
||||
},
|
||||
"models": {
|
||||
"gpt-5.2": {
|
||||
"name": "GPT-5.2",
|
||||
"reasoning": true,
|
||||
@@ -63,6 +51,26 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"google": {
|
||||
"options": {
|
||||
"baseURL": "{env:LITELLM_BASE_URL}/v1beta",
|
||||
"apiKey": "{env:LITELLM_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 }
|
||||
}
|
||||
}
|
||||
},
|
||||
"bailian-coding-plan": {
|
||||
"npm": "@ai-sdk/anthropic",
|
||||
"name": "Model Studio Coding Plan",
|
||||
|
||||
Reference in New Issue
Block a user