add grok 4.6 (#84661)

This commit is contained in:
rob-maron 2026-08-12 13:37:04 -04:00 committed by GitHub
parent a871948d8d
commit 3e09adb109
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 10 additions and 5 deletions

View File

@ -506,6 +506,7 @@ DEFAULT_CONTEXT_LENGTHS = {
"grok-2-vision": 8192, # grok-2-vision, -1212, -latest
"grok-4-fast": 2000000, # grok-4-fast-(non-)reasoning, also matches -reasoning
"grok-4.20": 2000000, # grok-4.20-0309-(non-)reasoning, -multi-agent-0309
"grok-4.6": 500000, # grok-4.6 — 500K context (OpenRouter / docs.x.ai)
"grok-4.5": 500000, # grok-4.5, grok-4.5-latest — 500K context per docs.x.ai
"grok-4.3": 1000000, # grok-4.3, grok-4.3-latest — 1M context per docs.x.ai
"grok-4": 256000, # grok-4, grok-4-0709
@ -580,6 +581,8 @@ _GROK_EFFORT_CAPABLE_PREFIXES = (
# "none" ("This model does not support `reasoning_effort` value `none`"),
# unlike grok-4.3. models.dev agrees: effort values [low, medium, high].
"grok-4.5",
# grok-4.6: drop-in successor of grok-4.5 (same effort dial).
"grok-4.6",
)

View File

@ -123,6 +123,7 @@ _REASONING_STALE_TIMEOUT_FLOORS: tuple[tuple[str, int], ...] = (
("grok-4-fast-reasoning", 300),
("grok-4.20-reasoning", 300),
("grok-4.5", 300),
("grok-4.6", 300),
("grok-4-fast-non-reasoning", 180),
)

View File

@ -69,7 +69,7 @@ OPENROUTER_MODELS: list[tuple[str, str]] = [
("google/gemini-3.1-pro-preview", ""),
("google/gemini-3.6-flash", ""),
# xAI
("x-ai/grok-4.5", ""),
("x-ai/grok-4.6", ""),
# DeepSeek
("deepseek/deepseek-v4-pro", ""),
("deepseek/deepseek-v4-flash", ""),
@ -241,7 +241,7 @@ _PROVIDER_MODELS: dict[str, list[str]] = {
"google/gemini-3.1-pro-preview",
"google/gemini-3.6-flash",
# xAI
"x-ai/grok-4.5",
"x-ai/grok-4.6",
# DeepSeek
"deepseek/deepseek-v4-pro",
"deepseek/deepseek-v4-flash",

View File

@ -83,6 +83,7 @@ import pytest
("x-ai/grok-4-fast-reasoning", 300.0),
("x-ai/grok-4.20-reasoning", 300.0),
("x-ai/grok-4.5", 300.0),
("x-ai/grok-4.6", 300.0),
("x-ai/grok-4-fast-non-reasoning", 180.0),
])
def test_reasoning_stale_timeout_floor_positive_cases(model, expected):

View File

@ -1,6 +1,6 @@
{
"version": 1,
"updated_at": "2026-08-03T22:03:15Z",
"updated_at": "2026-08-12T17:23:25Z",
"metadata": {
"source": "hermes-agent repo",
"docs": "https://hermes-agent.nousresearch.com/docs/reference/model-catalog"
@ -85,7 +85,7 @@
"description": ""
},
{
"id": "x-ai/grok-4.5",
"id": "x-ai/grok-4.6",
"description": ""
},
{
@ -226,7 +226,7 @@
"id": "google/gemini-3.6-flash"
},
{
"id": "x-ai/grok-4.5"
"id": "x-ai/grok-4.6"
},
{
"id": "deepseek/deepseek-v4-pro"