mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-11 22:51:28 +00:00
feat: Add MiniMax provider support to UI dashboard
- Add MiniMax to provider_create_fields.json with credential fields: - api_key (required, password field) - api_base (optional, defaults to https://api.minimax.io/v1) - Add MiniMax to UI provider enum and mappings - Includes tooltip for International vs China endpoints - Default model placeholder: minimax/MiniMax-M2 This enables users to configure MiniMax models directly through the proxy UI dashboard without needing to edit YAML config files. Fixes #18481
This commit is contained in:
parent
6dc11deeac
commit
93628c06ee
2 changed files with 30 additions and 0 deletions
|
|
@ -1680,6 +1680,34 @@
|
|||
],
|
||||
"default_model_placeholder": "gpt-3.5-turbo"
|
||||
},
|
||||
{
|
||||
"provider": "MINIMAX",
|
||||
"provider_display_name": "MiniMax",
|
||||
"litellm_provider": "minimax",
|
||||
"credential_fields": [
|
||||
{
|
||||
"key": "api_key",
|
||||
"label": "API Key",
|
||||
"placeholder": "your-minimax-api-key",
|
||||
"tooltip": "MiniMax API Key from https://platform.minimaxi.com/",
|
||||
"required": true,
|
||||
"field_type": "password",
|
||||
"options": null,
|
||||
"default_value": null
|
||||
},
|
||||
{
|
||||
"key": "api_base",
|
||||
"label": "API Base URL",
|
||||
"placeholder": "https://api.minimax.io/v1",
|
||||
"tooltip": "International: https://api.minimax.io/v1, China: https://api.minimaxi.com/v1",
|
||||
"required": false,
|
||||
"field_type": "text",
|
||||
"options": null,
|
||||
"default_value": "https://api.minimax.io/v1"
|
||||
}
|
||||
],
|
||||
"default_model_placeholder": "minimax/MiniMax-M2"
|
||||
},
|
||||
{
|
||||
"provider": "MOONSHOT",
|
||||
"provider_display_name": "Moonshot",
|
||||
|
|
|
|||
|
|
@ -24,6 +24,7 @@ export enum Providers {
|
|||
Hosted_Vllm = "vllm",
|
||||
Infinity = "Infinity",
|
||||
JinaAI = "Jina AI",
|
||||
MiniMax = "MiniMax",
|
||||
MistralAI = "Mistral AI",
|
||||
Ollama = "Ollama",
|
||||
OpenAI = "OpenAI",
|
||||
|
|
@ -55,6 +56,7 @@ export const provider_map: Record<string, string> = {
|
|||
Google_AI_Studio: "gemini",
|
||||
Bedrock: "bedrock",
|
||||
Groq: "groq",
|
||||
MiniMax: "minimax",
|
||||
MistralAI: "mistral",
|
||||
Cohere: "cohere",
|
||||
OpenAI_Compatible: "openai",
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue