* feat: add Xiaomi MiMo provider support - Add 'mimo' protocol prefix support in factory_provider.go - Add default API base URL for MiMo: https://api.xiaomimimo.com/v1 - Update provider-label.ts to include Xiaomi MiMo label - Add MiMo to provider tables in both English and Chinese documentation - Add comprehensive unit tests for MiMo provider MiMo API is compatible with OpenAI API format, making it easy to integrate with the existing HTTPProvider infrastructure. Users can now use MiMo by configuring: { "model_name": "mimo", "model": "mimo/mimo-v2-pro", "api_key": "your-mimo-api-key" } * hassas dosyaları kaldırma * Add .security.yml and onboard to .gitignore
35 lines
907 B
TypeScript
35 lines
907 B
TypeScript
const PROVIDER_LABELS: Record<string, string> = {
|
|
openai: "OpenAI",
|
|
anthropic: "Anthropic",
|
|
gemini: "Google Gemini",
|
|
deepseek: "DeepSeek",
|
|
qwen: "Qwen (阿里云)",
|
|
moonshot: "Moonshot (月之暗面)",
|
|
groq: "Groq",
|
|
openrouter: "OpenRouter",
|
|
nvidia: "NVIDIA",
|
|
cerebras: "Cerebras",
|
|
volcengine: "Volcengine (火山引擎)",
|
|
shengsuanyun: "ShengsuanYun (神算云)",
|
|
antigravity: "Google Code Assist",
|
|
"github-copilot": "GitHub Copilot",
|
|
ollama: "Ollama (local)",
|
|
mistral: "Mistral AI",
|
|
avian: "Avian",
|
|
vllm: "VLLM (local)",
|
|
zhipu: "Zhipu AI (智谱)",
|
|
mimo: "Xiaomi MiMo",
|
|
}
|
|
|
|
export function getProviderKey(model: string): string {
|
|
return model.split("/")[0]
|
|
}
|
|
|
|
export function getProviderLabel(model: string): string {
|
|
const prefix = getProviderKey(model)
|
|
const labels: Record<string, string> = {
|
|
...PROVIDER_LABELS,
|
|
}
|
|
return labels[prefix] ?? prefix
|
|
}
|