feat(xai): add grok-composer-2.5-fast to xAI OAuth model picker

The model is callable via xAI OAuth but omitted from models.dev and
/v1/models listings. Merge it into the curated xAI catalog so it appears
in `hermes model` without requiring a custom model name.
This commit is contained in:
definitelynotguru
2026-06-17 09:49:46 -07:00
committed by Teknium
parent cc9f37e77c
commit eaddeaf2e6
3 changed files with 34 additions and 2 deletions
@@ -0,0 +1,14 @@
"""Regression tests for xAI curated model list (OAuth picker)."""
from hermes_cli.models import _PROVIDER_MODELS, provider_model_ids
def test_xai_oauth_includes_grok_composer_2_5_fast():
models = provider_model_ids("xai-oauth")
assert "grok-composer-2.5-fast" in models
def test_grok_composer_slots_after_grok_build():
models = _PROVIDER_MODELS["xai-oauth"]
assert models[0] == "grok-build-0.1"
assert models[1] == "grok-composer-2.5-fast"