litellm/tests/unit/llms/custom_httpx
quietjules 2fd0587224
fix(realtime): keep push-to-talk for transcription sessions opened without intent under a transcript guardrail (#50594)
* fix(realtime): keep push-to-talk for transcription sessions opened without intent under a transcript guardrail

Providers whose session.created is built by the proxy (Vertex Chirp, Meta Muse) mark the session as a transcription session, but that event never reached the check that decides whether the realtime_input_transcription guardrail swaps the client's turn_detection for server_vad. Run the synthetic event through that check before it goes to the client.

* test(realtime): cover Soniox push-to-talk under a transcript guardrail without intent

* test(realtime): inject the Soniox upstream through open_backend instead of patching the handler

---------

Co-authored-by: mateo-berri <277851410+mateo-berri@users.noreply.github.com>
2026-11-19 16:44:21 -08:00
..
__init__.py
test_aiohttp_cleanup_closed.py refactor(llms): expose public names for private provider helpers (#45037) 2026-10-07 08:49:25 -07:00
test_aiohttp_handler.py fix(http): diagnose aiohttp connection pool saturation (#49499) 2026-10-31 16:12:30 -07:00
test_aiohttp_so_keepalive.py refactor(llms): expose public names for private provider helpers (#45037) 2026-10-07 08:49:25 -07:00
test_aiohttp_transport.py fix(aiohttp_transport): close sessions of evicted Azure and base64 embedding clients (#52266) 2026-11-17 17:16:41 -08:00
test_asgi_handler.py
test_async_client_cleanup.py test: move 76 live top-level tests to offline unit and integration coverage (#45352) 2026-10-08 10:33:35 -07:00
test_container_handler.py test: catch regressions in the validation lines #44798 added (#47420) 2026-10-20 01:06:37 +00:00
test_credential_leak_prevention.py
test_gemini_session_leak.py test(unit): stop test modules from putting their own directory on sys.path (#43421) 2026-09-28 12:20:20 -07:00
test_http2_connection_spread.py feat(vertex_ai)!: use HTTP/2 httpx client for search_api vector store (#40631) 2026-10-29 10:31:18 -07:00
test_http_handler.py fix(httpx): repair surrogate code points in raw text request bodies (#49599) 2026-11-19 11:48:18 -08:00
test_llm_http_handler.py fix(realtime): keep push-to-talk for transcription sessions opened without intent under a transcript guardrail (#50594) 2026-11-19 16:44:21 -08:00
test_mock_transport.py
test_sse_lines.py fix(streaming): keep merged think tags balanced and split SSE lines only on CR/LF (#48755) 2026-10-28 17:00:29 -07:00