This commit is contained in:
OpenClaw-User 2026-03-14 17:08:06 +08:00
commit 41ceccb114
3 changed files with 10 additions and 0 deletions

View file

@ -64,6 +64,12 @@
"model": "openai/gpt-5.4", "model": "openai/gpt-5.4",
"api_key": "sk-key2", "api_key": "sk-key2",
"api_base": "https://api2.example.com/v1" "api_base": "https://api2.example.com/v1"
},
{
"model_name": "MiniMax-M2.5",
"model": "modelscope/MiniMax/MiniMax-M2.5",
"api_key": "sk-key3",
"api_base": "https://api-inference.modelscope.cn/v1"
} }
], ],
"channels": { "channels": {

View file

@ -464,6 +464,8 @@ func normalizeModel(model, apiBase string) string {
if strings.Contains(strings.ToLower(apiBase), "openrouter.ai") { if strings.Contains(strings.ToLower(apiBase), "openrouter.ai") {
return model return model
} else if strings.Contains(strings.ToLower(apiBase), "api-inference.modelscope.cn") {
return model
} }
prefix := strings.ToLower(before) prefix := strings.ToLower(before)

View file

@ -15,6 +15,7 @@ const PROVIDER_ICON_SLUGS: Record<string, string> = {
ollama: "ollama", ollama: "ollama",
mistral: "mistralai", mistral: "mistralai",
zhipu: "zhipu", zhipu: "zhipu",
modelscope: "modelscope",
} }
const PROVIDER_DOMAINS: Record<string, string> = { const PROVIDER_DOMAINS: Record<string, string> = {
@ -37,6 +38,7 @@ const PROVIDER_DOMAINS: Record<string, string> = {
avian: "avian.io", avian: "avian.io",
vllm: "vllm.ai", vllm: "vllm.ai",
zhipu: "zhipuai.cn", zhipu: "zhipuai.cn",
modelscope: "modelscope.cn",
} }
interface ProviderIconProps { interface ProviderIconProps {