1
0
forked from agents/opencode

chore: 接入 LiteLLM 模型并更新轻量代理配置

This commit is contained in:
2026-03-17 14:50:42 +08:00
parent db8880c833
commit b4569fa6a9
2 changed files with 31 additions and 3 deletions

View File

@@ -34,6 +34,34 @@
"limit": { "context": 400000, "input": 272000, "output": 128000 }
}
}
},
"litellm": {
"name": "LiteLLM",
"npm": "@ai-sdk/openai-compatible",
"options": {
"baseURL": "{env:LITELLM_BASE_URL}/v1",
"apiKey": "{env:LITELLM_API_KEY}"
},
"models": {
"glm-5": {
"name": "GLM-5",
"reasoning": true,
"modalities": { "input": ["text"], "output": ["text"] },
"limit": { "context": 204800, "output": 131072 }
},
"kimi-k2.5": {
"name": "Kimi K2.5",
"reasoning": true,
"modalities": { "input": ["text", "image", "video"], "output": ["text"] },
"limit": { "context": 262144, "output": 262144 }
},
"minimax-m2.5": {
"name": "MiniMax M2.5",
"reasoning": true,
"modalities": { "input": ["text"], "output": ["text"] },
"limit": { "context": 204800, "output": 131072 }
}
}
}
}
}