docs: add Xiaomi MiMo to all provider docs + fix MiMo-V2-Flash ctx len

- environment-variables.md: XIAOMI_API_KEY, XIAOMI_BASE_URL, provider list
- cli-commands.md: --provider choices
- integrations/providers.md: provider table, Chinese providers section,
  config example, base URL list, choosing table, fallback providers list
- fallback-providers.md: supported providers table, auto-detection chain
- Fix XiaomiMiMo/MiMo-V2-Flash context length 32768 → 256000 (OpenRouter entry)
This commit is contained in:
Teknium 2026-04-11 11:02:58 -07:00 committed by Teknium
parent 6693e2a497
commit d4bb44d4b9
7 changed files with 20 additions and 13 deletions

View file

@ -285,12 +285,12 @@ class TestXiaomiProvidersModule:
class TestXiaomiAuxiliary:
"""Xiaomi should have a default auxiliary model and a vision model override."""
"""Xiaomi auxiliary routing: vision → omni, non-vision → user's main model, never flash."""
def test_aux_model_defined(self):
def test_no_flash_in_aux_models(self):
"""mimo-v2-flash must NEVER be used for automatic aux routing."""
from agent.auxiliary_client import _API_KEY_PROVIDER_AUX_MODELS
assert "xiaomi" in _API_KEY_PROVIDER_AUX_MODELS
assert _API_KEY_PROVIDER_AUX_MODELS["xiaomi"] == "mimo-v2-flash"
assert "xiaomi" not in _API_KEY_PROVIDER_AUX_MODELS
def test_vision_model_override(self):
"""Xiaomi vision tasks should use mimo-v2-omni (multimodal), not the main model."""