Skip to content

feat(xai): support model selection in realtime, default to grok-voice-think-fast-1.0#5548

Merged
davidzhao merged 1 commit intolivekit:mainfrom
Hormold:xai/realtime-model-selection
Apr 26, 2026
Merged

feat(xai): support model selection in realtime, default to grok-voice-think-fast-1.0#5548
davidzhao merged 1 commit intolivekit:mainfrom
Hormold:xai/realtime-model-selection

Conversation

@Hormold
Copy link
Copy Markdown
Contributor

@Hormold Hormold commented Apr 24, 2026

x.ai deprecated grok-voice-fast-1.0 and recommends grok-voice-think-fast-1.0 as the new flagship voice model, selectable via the model query param on the realtime websocket (see https://docs.x.ai/developers/model-capabilities/audio/voice-agent). This patch adds a model kwarg to xai.realtime.RealtimeModel, defaults it to grok-voice-think-fast-1.0, and exposes a GrokRealtimeModels literal with both the new and legacy ids; the parent openai realtime client already forwards model as a ws query param so the resulting url matches the x.ai docs exactly.

Copy link
Copy Markdown
Contributor

@devin-ai-integration devin-ai-integration Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Devin Review: No Issues Found

Devin Review analyzed this PR and found no potential bugs to report.

View in Devin Review to see 2 additional findings.

Open in Devin Review

@galigutta
Copy link
Copy Markdown

when is this going to be available in a release?

@davidzhao davidzhao merged commit de09e4a into livekit:main Apr 26, 2026
18 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.

4 participants