litellm/tests/unit/responses
kenneth-berri 94d5296b9b
feat(gemini): support Gemini Live Avatar on Vertex AI realtime (#53270)
* feat(gemini): live avatar support for gemini-3.8-live (avatar config, video deltas, video tokens)

Gemini 3.8 Live can render a lip-synced avatar: the setup takes avatarConfig
and responseModalities ["VIDEO"], and the model streams fragmented MP4 (H.264
+ AAC) blobs as video/mp4 inlineData parts, continuously and outside any turn.

- session.update `avatar` -> setup.avatarConfig.avatarName and
  `avatar_video_bitrate_bps` -> avatarConfig.videoBitrateBps (the default
  stream is about 8 Mbit/s); output_modalities ["video"] already maps to VIDEO
- video/* inlineData parts become response.output_video.delta events instead of
  being appended to the audio delta; a video-only model turn is a side channel
  that opens no response, the spoken turn is opened by its output transcript
  and closed by generationComplete like any audio item
- video output tokens survive into response.done usage
  (output_token_details.video_tokens)

Refs #43166

* docs(realtime): note live avatar coverage in the realtime e2e matrix

* feat(gemini): serve Live Avatar only on Vertex and wait for its setup before sending content

Co-authored-by: Tech Carrement <tech@carrement.ai>

* fix(realtime): keep held avatar content in order and bill video output tokens

* test(realtime): annotate the avatar tests

* refactor(realtime): take the held content in one typed step

---------

Co-authored-by: Tech Carrement <tech@carrement.ai>
2026-11-21 15:06:59 -08:00
..
litellm_completion_transformation fix(responses): answer Codex compaction_trigger on the chat-completions bridge (#53266) 2026-11-21 14:53:31 -08:00
mcp refactor(auth_cache): type auth cache keys and keep the cache always native (#51130) 2026-11-21 17:20:30 +09:00
__init__.py ci: move provider-independent MCP tests into tests/unit and run mcp-integration from litellm-tests (#42904) 2026-09-24 23:07:48 +00:00
test_additional_tools.py feat(proxy): mixed Codex model picker and LiteLLM routing on native codex routes (#49408) 2026-11-06 11:14:47 -08:00
test_custom_tool_call.py test: move tests/test_litellm core utils, routing, responses, caching and rust_bridge into tests/unit (#43199) 2026-09-25 17:10:13 -07:00
test_input_items_query.py fix(proxy): forward limit, order, after, before and include on GET /v1/responses/{id}/input_items (#51259) 2026-11-20 07:54:26 -08:00
test_instructions_length.py fix(responses): send bridged system prompts too long for instructions as input (#52964) 2026-11-20 11:56:47 -08:00
test_metadata_codex_callback.py test: move tests/test_litellm core utils, routing, responses, caching and rust_bridge into tests/unit (#43199) 2026-09-25 17:10:13 -07:00
test_no_duplicate_spend_logs.py test: move tests/test_litellm core utils, routing, responses, caching and rust_bridge into tests/unit (#43199) 2026-09-25 17:10:13 -07:00
test_null_test_fix.py test: move tests/test_litellm core utils, routing, responses, caching and rust_bridge into tests/unit (#43199) 2026-09-25 17:10:13 -07:00
test_responses_api_bridge_flag.py fix(tool_choice): accept the Responses API's flat allowed_tools layout on chat completions (#50467) 2026-11-10 13:04:06 -08:00
test_responses_api_lifecycle.py fix(responses): log the resolved provider on Responses API calls (#52622) 2026-11-18 22:34:16 +00:00
test_responses_api_request_body.py fix(responses): log the resolved provider on Responses API calls (#52622) 2026-11-18 22:34:16 +00:00
test_responses_prompt_management.py fix(sdk): decide MCP gateway routing without importing the proxy handler (#45961) 2026-10-20 01:44:54 +00:00
test_responses_router_cooldown.py refactor(router): delete the python router core, the rust core is the only core (#50178) 2026-11-05 10:40:46 -08:00
test_responses_streaming_iterator.py fix(responses): resume background response streams with stream and starting_after (#48819) 2026-10-29 02:31:22 -07:00
test_responses_supported_endpoints_passthrough.py test: move tests/test_litellm core utils, routing, responses, caching and rust_bridge into tests/unit (#43199) 2026-09-25 17:10:13 -07:00
test_responses_utils.py feat(gemini): support Gemini Live Avatar on Vertex AI realtime (#53270) 2026-11-21 15:06:59 -08:00
test_responses_websocket_all_providers.py fix(responses): connect the Responses WebSocket to a plain http api_base (#53240) 2026-11-20 17:49:49 -08:00
test_rust_bridge_websocket.py refactor(rust-bridge): require the native extension (#48852) 2026-10-28 13:16:56 -07:00
test_sse_output_recovery.py test: move tests/test_litellm core utils, routing, responses, caching and rust_bridge into tests/unit (#43199) 2026-09-25 17:10:13 -07:00
test_streaming_iterator.py fix(responses): preserve incomplete status in synthetic streams (#52489) 2026-11-19 22:24:50 -08:00
test_streaming_iterator_error_events.py fix(responses): surface mid-stream upstream errors that arrive without an event type (#50466) 2026-11-07 14:53:07 -08:00
test_text_format_conversion.py refactor: expose core private helpers under public names (#44871) 2026-10-07 00:05:27 +00:00