Merge PR #1447
This commit is contained in:
commit
41ceccb114
3 changed files with 10 additions and 0 deletions
|
|
@ -64,6 +64,12 @@
|
|||
"model": "openai/gpt-5.4",
|
||||
"api_key": "sk-key2",
|
||||
"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": {
|
||||
|
|
|
|||
|
|
@ -464,6 +464,8 @@ func normalizeModel(model, apiBase string) string {
|
|||
|
||||
if strings.Contains(strings.ToLower(apiBase), "openrouter.ai") {
|
||||
return model
|
||||
} else if strings.Contains(strings.ToLower(apiBase), "api-inference.modelscope.cn") {
|
||||
return model
|
||||
}
|
||||
|
||||
prefix := strings.ToLower(before)
|
||||
|
|
|
|||
|
|
@ -15,6 +15,7 @@ const PROVIDER_ICON_SLUGS: Record<string, string> = {
|
|||
ollama: "ollama",
|
||||
mistral: "mistralai",
|
||||
zhipu: "zhipu",
|
||||
modelscope: "modelscope",
|
||||
}
|
||||
|
||||
const PROVIDER_DOMAINS: Record<string, string> = {
|
||||
|
|
@ -37,6 +38,7 @@ const PROVIDER_DOMAINS: Record<string, string> = {
|
|||
avian: "avian.io",
|
||||
vllm: "vllm.ai",
|
||||
zhipu: "zhipuai.cn",
|
||||
modelscope: "modelscope.cn",
|
||||
}
|
||||
|
||||
interface ProviderIconProps {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue