chore: 接入 AI Gateway 并切换轻量代理至 MiniMax M2.5

This commit is contained in:
2026-03-28 14:28:02 +08:00
parent 74f91bf434
commit 7da2dfe167
3 changed files with 24 additions and 8 deletions
+19 -3
View File
@@ -3,13 +3,13 @@
"plugin": ["oh-my-opencode@latest"],
"autoupdate": false,
"model": "openai/gpt-5.4",
"small_model": "openai/gpt-5.4-mini",
"small_model": "ai-gateway/minimax-m2.5",
"provider": {
"openai": {
"npm": "@ai-sdk/openai",
"options": {
"baseURL": "{env:LITELLM_BASE_URL}/v1",
"apiKey": "{env:LITELLM_API_KEY}"
"baseURL": "{env:AI_GATEWAY_BASE_URL}/v1",
"apiKey": "{env:AI_GATEWAY_API_KEY}"
},
"models": {
"gpt-5.4": {
@@ -31,6 +31,22 @@
"limit": { "context": 400000, "input": 272000, "output": 128000 }
}
}
},
"ai-gateway": {
"name": "AI Gateway",
"npm": "@ai-sdk/openai-compatible",
"options": {
"baseURL": "{env:AI_GATEWAY_BASE_URL}/v1",
"apiKey": "{env:AI_GATEWAY_API_KEY}"
},
"models": {
"minimax-m2.5": {
"name": "MiniMax M2.5",
"reasoning": true,
"modalities": { "input": ["text"], "output": ["text"] },
"limit": { "context": 204800, "output": 131072 }
}
}
}
},
"permission": {