Skip to content

Add grok-composer-2.5-fast to xAI OAuth model picker - #47904

Closed
definitelynotguru wants to merge 1 commit into
NousResearch:mainfrom
definitelynotguru:feat/xai-oauth-grok-composer-picker
Closed

Add grok-composer-2.5-fast to xAI OAuth model picker#47904
definitelynotguru wants to merge 1 commit into
NousResearch:mainfrom
definitelynotguru:feat/xai-oauth-grok-composer-picker

Conversation

@definitelynotguru

Copy link
Copy Markdown
Contributor

What

Adds grok-composer-2.5-fast to the xAI Grok OAuth model catalog shown in hermes model.

Why

The model works over xAI OAuth (api.x.ai/v1) but is omitted from both the models.dev cache and xAI's /v1/models listing, so Hermes never surfaced it in the picker. Users had to type it manually via "Enter custom model name" even though it is callable with the same OAuth credentials as grok-build-0.1.

Changes

  • hermes_cli/models.py: introduce _XAI_CURATED_EXTRAS and merge logic so unlisted-but-callable models are injected into the xAI OAuth picker (slotted immediately after grok-build-0.1).
  • agent/model_metadata.py: add a 200k context fallback for grok-composer-*.
  • tests/hermes_cli/test_xai_curated_models.py: regression tests for list membership and ordering.

How to test

  1. Sign in with xAI OAuth: hermes auth add xai-oauth
  2. Run hermes model → xAI Grok → xAI Grok OAuth (SuperGrok / Premium+)
  3. Confirm grok-composer-2.5-fast appears directly under grok-build-0.1
  4. Select it and run a one-shot: hermes -z "say hi" -m grok-composer-2.5-fast --provider xai-oauth
scripts/run_tests.sh tests/hermes_cli/test_xai_curated_models.py

Platforms tested

Linux (CachyOS)

The model is callable via xAI OAuth but omitted from models.dev and
/v1/models listings. Merge it into the curated xAI catalog so it appears
in `hermes model` without requiring a custom model name.
@alt-glitch alt-glitch added type/feature New feature or request comp/cli CLI entry point, hermes_cli/, setup wizard provider/xai xAI (Grok) P3 Low — cosmetic, nice to have duplicate This issue or pull request already exists labels Jun 17, 2026
@alt-glitch

Copy link
Copy Markdown
Collaborator

Duplicate of #36968 — that open PR already adds grok-composer-2.5-fast to the xAI model picker (earlier, 2026-06-01). Same model, same goal, same primary file (hermes_cli/models.py). This PR's curated-extras/merge approach plus the 200k context fallback in agent/model_metadata.py is a cleaner mechanism, but it's the same feature — maintainer can choose which to land.

@teknium1

Copy link
Copy Markdown
Contributor

Merged via #47908 — your commit was cherry-picked onto current main with your authorship preserved (eaddeaf). Thanks for the clean curated-extras approach and the regression tests. #47908

@teknium1 teknium1 closed this Jun 17, 2026
waefrebeorn pushed a commit to waefrebeorn/slermes that referenced this pull request Jul 2, 2026
habarmc1223-sudo pushed a commit to habarmc1223-sudo/hermes-agent-fluxmem that referenced this pull request Jul 8, 2026
santhreal pushed a commit to santhreal/hermes-agent that referenced this pull request Jul 13, 2026
Gravezzz pushed a commit to Gravezzz/hermes-agent that referenced this pull request Jul 21, 2026
leewenjie pushed a commit to leewenjie/hermes-agent that referenced this pull request Aug 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

comp/cli CLI entry point, hermes_cli/, setup wizard duplicate This issue or pull request already exists P3 Low — cosmetic, nice to have provider/xai xAI (Grok) type/feature New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants