diff --git a/.env.example b/.env.example index 30535834..765ea3f6 100644 --- a/.env.example +++ b/.env.example @@ -70,6 +70,12 @@ NEARAI_AUTH_URL=https://private.near.ai # LLM_BASE_URL=https://api.fireworks.ai/inference/v1 # LLM_API_KEY=fw_... +# === MiniMax === +# LLM_BACKEND=minimax +# MINIMAX_API_KEY=... +# MINIMAX_MODEL=MiniMax-M2.5 +# MINIMAX_BASE_URL=https://api.minimax.io/v1 # default (global); use https://api.minimaxi.com/v1 for China + # === Anthropic Direct === # LLM_BACKEND=anthropic # ANTHROPIC_MODEL=claude-sonnet-4-6 diff --git a/docs/LLM_PROVIDERS.md b/docs/LLM_PROVIDERS.md index 60ac2bbc..a581a56b 100644 --- a/docs/LLM_PROVIDERS.md +++ b/docs/LLM_PROVIDERS.md @@ -15,6 +15,7 @@ configurations. | io.net | `ionet` | `IONET_API_KEY` | Intelligence API | | Mistral | `mistral` | `MISTRAL_API_KEY` | Mistral models | | Yandex AI Studio | `yandex` | `YANDEX_API_KEY` | YandexGPT models | +| MiniMax | `minimax` | `MINIMAX_API_KEY` | MiniMax-M2.5 models | | Cloudflare Workers AI | `cloudflare` | `CLOUDFLARE_API_KEY` | Access to Workers AI | | Ollama | `ollama` | No | Local inference | | AWS Bedrock | `bedrock` | AWS credentials | Native Converse API | @@ -74,6 +75,25 @@ Pull a model first: `ollama pull llama3.2` --- +## MiniMax + +[MiniMax](https://platform.minimax.io) provides high-performance language models with 204,800 token context windows. + +```env +LLM_BACKEND=minimax +MINIMAX_API_KEY=... +``` + +Available models: `MiniMax-M2.5` (default), `MiniMax-M2.5-highspeed` + +To use the China mainland endpoint, set: + +```env +MINIMAX_BASE_URL=https://api.minimaxi.com/v1 +``` + +--- + ## AWS Bedrock (requires `--features bedrock`) Uses the native AWS Converse API via `aws-sdk-bedrockruntime`. Supports standard AWS diff --git a/providers.json b/providers.json index 3b98af30..12723a6f 100644 --- a/providers.json +++ b/providers.json @@ -382,6 +382,27 @@ "can_list_models": true } }, + { + "id": "minimax", + "aliases": [ + "mini_max" + ], + "protocol": "open_ai_completions", + "default_base_url": "https://api.minimax.io/v1", + "api_key_env": "MINIMAX_API_KEY", + "api_key_required": true, + "base_url_env": "MINIMAX_BASE_URL", + "model_env": "MINIMAX_MODEL", + "default_model": "MiniMax-M2.5", + "description": "MiniMax API (MiniMax-M2.5 and MiniMax-M2.5-highspeed models)", + "setup": { + "kind": "api_key", + "secret_name": "llm_minimax_api_key", + "key_url": "https://platform.minimax.io", + "display_name": "MiniMax", + "can_list_models": false + } + }, { "id": "cloudflare", "aliases": [