Skip to content

Bake xAI frontier context limits - #29

Merged
K-Mistele merged 2 commits into
mainfrom
fix-grok-context-window-auto-compact-calculation
Aug 29, 2026
Merged

Bake xAI frontier context limits#29
K-Mistele merged 2 commits into
mainfrom
fix-grok-context-window-auto-compact-calculation

Conversation

@K-Mistele

@K-Mistele K-Mistele commented Aug 29, 2026

Copy link
Copy Markdown
Contributor

Summary

  • extend the generated models.dev baked catalog to include the xai provider, following the existing Codex/OpenAI provider pattern
  • bake the verified 500,000-token context-window entries for Grok 4.5 and Grok 4.6
  • add a regression test for resolving Grok 4.6 from the baked catalog

Riptide will consume this catalog in a follow-up after the Fold release, letting daemon auto-compaction and UI usage projection use the same Grok context limit.

Verification

  • bun --filter @humanlayer/fold-xai test
  • bun --filter @humanlayer/fold-agent test
  • bun --filter @humanlayer/fold-xai typecheck
  • bun --filter @humanlayer/fold-agent typecheck
  • bunx oxlint --type-aware …changed catalog files
  • bunx oxfmt --check …changed catalog files

@K-Mistele
K-Mistele merged commit 1fb06ae into main Aug 29, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant