feat: add MiniMax OpenAI-compatible provider support
- Add minimax to _OPENAI_COMPATIBLE providers in factory.py - Add minimax to _PROVIDER_CONFIG with api.minimaxi.com/v1 endpoint - Uses MINIMAX_CN_API_KEY environment variable
This commit is contained in:
parent
fa4d01c23a
commit
fbdc1d41c7
|
|
@ -9,6 +9,7 @@ from .azure_client import AzureOpenAIClient
|
||||||
# Providers that use the OpenAI-compatible chat completions API
|
# Providers that use the OpenAI-compatible chat completions API
|
||||||
_OPENAI_COMPATIBLE = (
|
_OPENAI_COMPATIBLE = (
|
||||||
"openai", "xai", "deepseek", "qwen", "glm", "ollama", "openrouter",
|
"openai", "xai", "deepseek", "qwen", "glm", "ollama", "openrouter",
|
||||||
|
"minimax",
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -32,6 +32,7 @@ _PROVIDER_CONFIG = {
|
||||||
"glm": ("https://api.z.ai/api/paas/v4/", "ZHIPU_API_KEY"),
|
"glm": ("https://api.z.ai/api/paas/v4/", "ZHIPU_API_KEY"),
|
||||||
"openrouter": ("https://openrouter.ai/api/v1", "OPENROUTER_API_KEY"),
|
"openrouter": ("https://openrouter.ai/api/v1", "OPENROUTER_API_KEY"),
|
||||||
"ollama": ("http://localhost:11434/v1", None),
|
"ollama": ("http://localhost:11434/v1", None),
|
||||||
|
"minimax": ("https://api.minimaxi.com/v1", "MINIMAX_CN_API_KEY"),
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue