From 2a8309da207360ab334c03970306643986bf48dc Mon Sep 17 00:00:00 2001 From: vominh1919 Date: Tue, 28 Apr 2026 11:14:04 +0700 Subject: [PATCH] fix(models): update stale xAI model list (#16699) _Update stale xAI model list in _PROVIDER_MODELS to match current catalog from OpenRouter._ The previous entries were: - grok-4.20-reasoning (no longer accepted by xAI) - grok-4-1-fast-reasoning (never existed) Updated to current xAI models: - grok-4.20 (2M context) - grok-4.20-multi-agent (2M context) - grok-4.1-fast (2M context) - grok-4-fast (2M context) - grok-4 (256K context) - grok-code-fast-1 (256K context) Fixes NousResearch/hermes-agent#16699 --- hermes_cli/models.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/hermes_cli/models.py b/hermes_cli/models.py index 28ca6d7deae66..7820ef740e8af 100644 --- a/hermes_cli/models.py +++ b/hermes_cli/models.py @@ -194,8 +194,12 @@ def _codex_curated_models() -> list[str]: "glm-4.5-flash", ], "xai": [ - "grok-4.20-reasoning", - "grok-4-1-fast-reasoning", + "grok-4.20", + "grok-4.20-multi-agent", + "grok-4.1-fast", + "grok-4-fast", + "grok-4", + "grok-code-fast-1", ], "nvidia": [ # NVIDIA flagship reasoning models