Repository navigation
Conversation
Assisted-by: Claude Code
Assisted-by: Claude Code
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.
Overview
Adds
tools/server/tests/unit/test_realtime.py, the first tests for the/v1/realtimeWebSocket endpoint.test_realtime_unsupported_modelruns in CI on tinygemma3: a model withoutvoxtral_rtaudio streaming gets a singleerrorevent.test_realtime_control_events(slow):session.update,input_audio_buffer.clear, an unknown event and a final commit producesession.updated,input_audio_buffer.cleared,errorandcompleted, in that order.test_realtime_commit(slow): the clip, a non-final commit, the clip again, then a final commit. It checks onecommitted, twocompletedwith matching item ids, and that each item holds the whole sentence. This is the regression test for Misc. bug: server: realtime commit completes the item before the flushed words are decoded ggml-org/llama.cpp#30968: before server: realtime API: send complete after committed audio drains ggml-org/llama.cpp#30994, the words held back by the model delay were attributed to the next item.The slow tests use
ggml-org/Voxtral-Mini-4B-Realtime-2602-GGUF:Q4_K_Mand whisper.cpp'sjfk.wav, and run with--temp 0. The model is not aServerPreseton purpose, becauseload_all()would download it for every test session.Additional information
Run on an RTX 3090, CUDA Release build of master 9145ddb:
At 1242be6 (before ggml-org#30994),
test_realtime_commitfails as expected:Requirements
Generated by Claude Code