fix(xai): align realtime Voice Agent defaults and API coverage - #6755
Merged
tinalenguyen merged 11 commits intoAug 10, 2026
Conversation
Default to grok-voice-latest with grok-transcribe, add force_message say(), and handle live caption updates so the LiveKit plugin matches current xAI Realtime behavior (and closes the Pipecat-era default-model gap). Co-authored-by: Cursor <cursoragent@cursor.com>
|
|
Co-authored-by: Cursor <cursoragent@cursor.com>
Match the OpenAI realtime cancellation path so interrupted force_message calls do not leave has_active_generation stuck or mis-tag later responses. Co-authored-by: Cursor <cursoragent@cursor.com>
Shrink the force_message/response.created race by only tagging replies after the create is on the wire, and support overlapping say() calls. Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Avoid splitting the plugin module in this PR; behavior is unchanged. Co-authored-by: Cursor <cursoragent@cursor.com>
Cancel/timeout previously cleared the pending say id before response.created, so the base discard path never matched and cancelled scripted speech could still play. Co-authored-by: Cursor <cursoragent@cursor.com>
A bare cancel before force_message would silence an unrelated in-flight reply. Co-authored-by: Cursor <cursoragent@cursor.com>
tinalenguyen
reviewed
Aug 8, 2026
Address review feedback: one async task owns send/wait/timeout/cancel, kept in _say_tasks so it cannot be GC'd, and cancelled from aclose(). Co-authored-by: Cursor <cursoragent@cursor.com>
aclose() cancelled the task and discarded by id but left the caller's future pending, which could hang AgentActivity awaiting say(). Co-authored-by: Cursor <cursoragent@cursor.com>
tinalenguyen
approved these changes
Aug 10, 2026
4 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
grok-voice-latest(resolves togrok-voice-think-fast-2.0) and default input transcription togrok-transcribeforce_messagesupport viaRealtimeSession.say()/supports_say, emit live caption updates fromconversation.item.input_audio_transcription.updated, and forwardreasoning/ transcription / speed optionslivekit-xai-issues.mdTest plan
uv run pytest tests/test_realtime/test_xai_realtime_model.py -q --allow-uncategorized(20 passed)XAI_API_KEY=… uv run pytest tests/test_realtime/test_realtime.py -k xai -q --allow-uncategorized(16 passed)grok-voice-latest,session.update(reasoning / idle_timeout / grok-transcribe), cancel, force_message, deleteMade with Cursor