diff --git a/README.md b/README.md index 48c9682..ce02754 100644 --- a/README.md +++ b/README.md @@ -69,6 +69,7 @@ Give it a model and a key and it goes. It speaks the OpenAI-compatible API by de |---|---| | OpenAI (default `gpt-5.5`) | `OPENAI_API_KEY=sk-...` | | DeepSeek | `OPENAI_API_KEY=sk-... OPENAI_BASE_URL=https://api.deepseek.com CORECODER_MODEL=deepseek-chat` | +| MiniMax | `OPENAI_API_KEY=sk-... OPENAI_BASE_URL=https://api.minimax.io/v1 CORECODER_MODEL=MiniMax-M3` | | Local Ollama | `OPENAI_API_KEY=ollama OPENAI_BASE_URL=http://localhost:11434/v1 CORECODER_MODEL=qwen2.5-coder` | Kimi, Qwen and the like are the same two variables; for providers that don't even offer an OpenAI-compatible endpoint, the optional LiteLLM backend (`pip install "corecoder[litellm]"`) routes to a hundred-plus of them. The third essay goes into this in detail. The key can be `export`ed directly or dropped into a `.env` at the project root, which is loaded on startup. Then: diff --git a/README_CN.md b/README_CN.md index 328e6ab..9e08f01 100644 --- a/README_CN.md +++ b/README_CN.md @@ -69,6 +69,7 @@ pip install -e . |---|---| | OpenAI(默认 `gpt-5.5`) | `OPENAI_API_KEY=sk-...` | | DeepSeek | `OPENAI_API_KEY=sk-... OPENAI_BASE_URL=https://api.deepseek.com CORECODER_MODEL=deepseek-chat` | +| MiniMax | `OPENAI_API_KEY=sk-... OPENAI_BASE_URL=https://api.minimax.io/v1 CORECODER_MODEL=MiniMax-M3` | | 本地 Ollama | `OPENAI_API_KEY=ollama OPENAI_BASE_URL=http://localhost:11434/v1 CORECODER_MODEL=qwen2.5-coder` | Kimi、Qwen 这些同样是改这两个变量;连 OpenAI 兼容接口都不给的 provider,装上可选的 LiteLLM 后端(`pip install "corecoder[litellm]"`)能路由一百多家。第三篇文章把这块讲得更细。key 可以直接 `export`,也可以在项目根目录扔个 `.env`,启动时自动加载。然后: diff --git a/corecoder/llm.py b/corecoder/llm.py index 1870830..e4c8e78 100644 --- a/corecoder/llm.py +++ b/corecoder/llm.py @@ -78,6 +78,8 @@ def message(self) -> dict: "qwen-max": (0.78, 3.9), # Moonshot Kimi "kimi-k2.5": (0.6, 3), + # MiniMax + "MiniMax-M3": (0.6, 2.4), }