mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-06-13 09:01:54 +00:00
fix(models): update stale xAI model list (#16699)
_PROVIDER_MODELS["xai"] was pointing at model IDs the xAI direct API no longer accepts: - grok-4.20-reasoning - grok-4-1-fast-reasoning Replaced with the actual current xAI catalog IDs from models.dev ($HERMES_HOME/models_dev_cache.json, mirror of https://models.dev/api.json): grok-4.20-0309-reasoning grok-4.20-0309-non-reasoning grok-4.20-multi-agent-0309 grok-4-1-fast grok-4-1-fast-non-reasoning grok-4-fast grok-4-fast-non-reasoning grok-4 grok-code-fast-1 The xAI-direct API (https://api.x.ai/v1) serves the dated IDs shown above; the bare aliases (grok-4.20, grok-4.1-fast, etc.) are OpenRouter/Vercel-gateway normalizations and are not accepted on xAI-direct. Those gateways remain unaffected. Fixes #16699
This commit is contained in:
parent
1b9b5d2957
commit
6c78305294
1 changed files with 9 additions and 2 deletions
|
|
@ -194,8 +194,15 @@ _PROVIDER_MODELS: dict[str, list[str]] = {
|
|||
"glm-4.5-flash",
|
||||
],
|
||||
"xai": [
|
||||
"grok-4.20-reasoning",
|
||||
"grok-4-1-fast-reasoning",
|
||||
"grok-4.20-0309-reasoning",
|
||||
"grok-4.20-0309-non-reasoning",
|
||||
"grok-4.20-multi-agent-0309",
|
||||
"grok-4-1-fast",
|
||||
"grok-4-1-fast-non-reasoning",
|
||||
"grok-4-fast",
|
||||
"grok-4-fast-non-reasoning",
|
||||
"grok-4",
|
||||
"grok-code-fast-1",
|
||||
],
|
||||
"nvidia": [
|
||||
# NVIDIA flagship reasoning models
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue