fix(models): update stale xAI model list (#16699)#16818
Closed
vominh1919 wants to merge 1 commit into
Closed
Conversation
_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#16699
Collaborator
Contributor
|
Merged via #16925 with your authorship preserved (commit 6c78305). The initial submission's names ( Also added a follow-up commit ( |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
The hardcoded
_PROVIDER_MODELS["xai"]list inhermes_cli/models.pyis stale. The previous entries (grok-4.20-reasoning,grok-4-1-fast-reasoning) no longer exist in xAI's catalog, causing HTTP 400 "Unknown Model" errors when users select them from the/modelpicker.Root Cause
xAI renamed their models. The old names (
grok-4.20-reasoning,grok-4-1-fast-reasoning) are no longer accepted.Fix
Updated to current xAI model IDs (verified via OpenRouter catalog):
grok-4.20-reasoninggrok-4.20grok-4-1-fast-reasoninggrok-4.1-fastgrok-4.20-multi-agentgrok-4-fastgrok-4grok-code-fast-1File changed:
hermes_cli/models.py(6 lines changed in_PROVIDER_MODELS["xai"])Testing
Verified model IDs against OpenRouter's live catalog (
/api/v1/models).Fixes #16699