Add first-class Xiaomi provider support (#863)
Some checks failed
CI / pre-commit (push) Has been cancelled
CI / plano-tools-tests (push) Has been cancelled
CI / native-smoke-test (push) Has been cancelled
CI / docker-build (push) Has been cancelled
CI / validate-config (push) Has been cancelled
CI / security-scan (push) Has been cancelled
CI / test-prompt-gateway (push) Has been cancelled
CI / test-model-alias-routing (push) Has been cancelled
CI / test-responses-api-with-state (push) Has been cancelled
CI / e2e-plano-tests (3.10) (push) Has been cancelled
CI / e2e-plano-tests (3.11) (push) Has been cancelled
CI / e2e-plano-tests (3.12) (push) Has been cancelled
CI / e2e-plano-tests (3.13) (push) Has been cancelled
CI / e2e-plano-tests (3.14) (push) Has been cancelled
CI / e2e-demo-preference (push) Has been cancelled
CI / e2e-demo-currency (push) Has been cancelled
Publish docker image (latest) / build-arm64 (push) Has been cancelled
Publish docker image (latest) / build-amd64 (push) Has been cancelled
Publish docker image (latest) / create-manifest (push) Has been cancelled
Build and Deploy Documentation / build (push) Has been cancelled

* feat(provider): add xiaomi as first-class provider

* feat(demos): add xiaomi mimo integration demo

* refactor(demos): remove Xiaomi MiMo integration demo and update documentation

* updating model list and adding the xiamoi models

---------

Co-authored-by: Salman Paracha <salmanparacha@MacBook-Pro-389.local>
This commit is contained in:
Musa 2026-04-04 12:58:36 -04:00 committed by GitHub
parent 9406af3a09
commit 978b1ea722
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
8 changed files with 226 additions and 122 deletions

View file

@ -496,6 +496,51 @@ Zhipu AI
- model: zhipu/glm-4.5-air
access_key: $ZHIPU_API_KEY
Xiaomi MiMo
~~~~~~~~~~~
**Provider Prefix:** ``xiaomi/``
**API Endpoint:** ``/v1/chat/completions``
**Authentication:** API Key - Create your key in the `Xiaomi MiMo API Open Platform <https://platform.xiaomimimo.com/#/docs/quick-start/model-hyperparameters>`_ and set ``MIMO_API_KEY``.
**Supported Chat Models:** All Xiaomi MiMo chat models including mimo-v2-pro, mimo-v2-omni, mimo-v2-flash, and future chat model releases.
.. list-table::
:header-rows: 1
:widths: 30 20 50
* - Model Name
- Model ID for Config
- Description
* - MiMo V2 Pro
- ``xiaomi/mimo-v2-pro``
- Highest capability general model
* - MiMo V2 Omni
- ``xiaomi/mimo-v2-omni``
- Multimodal-capable assistant model
* - MiMo V2 Flash
- ``xiaomi/mimo-v2-flash``
- Faster, lower-latency model
**Configuration Examples:**
.. code-block:: yaml
llm_providers:
# Configure all known Xiaomi models with wildcard expansion
- model: xiaomi/*
access_key: $MIMO_API_KEY
# Or configure specific models
- model: xiaomi/mimo-v2-pro
access_key: $MIMO_API_KEY
default: true
- model: xiaomi/mimo-v2-omni
access_key: $MIMO_API_KEY
Providers Requiring Base URL
----------------------------
@ -733,7 +778,7 @@ Automatically configure all available models from a provider using wildcard patt
**How Wildcards Work:**
1. **Known Providers** (OpenAI, Anthropic, DeepSeek, Mistral, Groq, Gemini, Together AI, xAI, Moonshot, Zhipu):
1. **Known Providers** (OpenAI, Anthropic, DeepSeek, Mistral, Groq, Gemini, Together AI, xAI, Moonshot, Zhipu, Xiaomi):
- Expands at config load time to all models in Plano's provider registry
- Creates entries for both canonical (``openai/gpt-4``) and short names (``gpt-4``)