fix(ai): use Xiaomi Token Plan Anthropic endpoint

closes #3912
This commit is contained in:
Mario Zechner
2026-05-02 01:36:34 +02:00
parent 80f06d3636
commit c0e046990e
11 changed files with 42 additions and 25 deletions

View File

@@ -69,7 +69,7 @@ Unified LLM API with automatic model discovery, provider configuration, token an
- **OpenCode Go**
- **Fireworks** (uses Anthropic-compatible API)
- **Kimi For Coding** (Moonshot AI, uses Anthropic-compatible API)
- **Xiaomi MiMo** (uses OpenAI-compatible API)
- **Xiaomi MiMo Token Plan** (uses Anthropic-compatible API)
- **Any OpenAI-compatible API**: Ollama, vLLM, LM Studio, etc.
## Installation
@@ -1047,6 +1047,7 @@ In Node.js environments, you can set environment variables to avoid passing API
| MiniMax | `MINIMAX_API_KEY` |
| OpenCode Zen / OpenCode Go | `OPENCODE_API_KEY` |
| Kimi For Coding | `KIMI_API_KEY` |
| Xiaomi MiMo Token Plan | `XIAOMI_API_KEY` |
| GitHub Copilot | `COPILOT_GITHUB_TOKEN` or `GH_TOKEN` or `GITHUB_TOKEN` |
When set, the library automatically uses these keys: