litellm/tests/unit/llms/vertex_ai
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
..
agent_engine fix(streaming): keep merged think tags balanced and split SSE lines only on CR/LF (#48755) 2026-10-28 17:00:29 -07:00
audio_transcription feat(vertex_ai): label Vertex requests with the caller's key, team, org, and project (#50732) 2026-11-14 00:39:01 -05:00
batches feat(vertex_ai): label Vertex requests with the caller's key, team, org, and project (#50732) 2026-11-14 00:39:01 -05:00
context_caching fix(gemini): parse tool call arguments with the shared helper (#50020) 2026-11-16 19:31:25 -08:00
count_tokens ci(unit): cut unit check time with cheaper per-test resets and fewer non-unit tests (#51864) 2026-11-14 15:41:30 -08:00
files fix(anthropic)!: send extra_body fields at the top level of the Messages request (#48373) 2026-11-20 06:52:56 -08:00
fine_tuning
fixtures
gemini fix(gemini): keep thought images out of message.images (#50709) 2026-11-21 21:58:19 +00:00
gemini_embeddings fix(gemini): support explicit text in embedding inputs (#53135) 2026-11-20 11:05:11 -08:00
image_edit fix(gemini): return n images for image generations and edits when n > 1 (#52103) 2026-11-16 14:50:13 -08:00
image_generation fix(gemini): bill cached input tokens on image generation (#52572) 2026-11-18 13:04:39 -08:00
interactions feat(vertex_ai): label Vertex requests with the caller's key, team, org, and project (#50732) 2026-11-14 00:39:01 -05:00
multimodal_embeddings feat(vertex_ai): label Vertex requests with the caller's key, team, org, and project (#50732) 2026-11-14 00:39:01 -05:00
rag_engine
realtime feat(gemini): support Gemini Live Avatar on Vertex AI realtime (#53270) 2026-11-21 15:06:59 -08:00
rerank feat(vertex_ai): label Vertex requests with the caller's key, team, org, and project (#50732) 2026-11-14 00:39:01 -05:00
responses feat(vertex_ai): add Meta Muse models on Vertex AI (#50768) 2026-11-21 13:00:24 -08:00
text_to_speech fix(vertex_ai): honor vertex_location for the Cloud Text-to-Speech endpoint (#50255) 2026-11-06 00:03:17 -08:00
vertex_ai_partner_models feat(messages): serve vertex ai claude messages on rust only (#52314) 2026-11-19 21:15:10 +00:00
vertex_embeddings fix(logging): stop keeping a full response copy nobody reads (#52524) 2026-11-18 11:51:01 -08:00
vertex_gemma_models fix(streaming)!: send the include_usage chunk with an empty choices array (#47109) 2026-10-21 02:26:05 +00:00
videos feat(vertex_ai): label Vertex requests with the caller's key, team, org, and project (#50732) 2026-11-14 00:39:01 -05:00
__init__.py
google_genai_proxy_test_config.yaml
test_bge_embedding.py
test_bge_response_transformation.py
test_common_utils.py
test_gemini_batch_embeddings.py
test_gemini_empty_properties.py
test_gemini_header_forwarding.py
test_http_status_201.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
test_request_labels.py feat(vertex_ai): label Vertex requests with the caller's key, team, org, and project (#50732) 2026-11-14 00:39:01 -05:00
test_vertex.py feat(messages): serve vertex ai claude messages on rust only (#52314) 2026-11-19 21:15:10 +00:00
test_vertex_ai_batch_transformation.py
test_vertex_ai_common_utils.py feat(vertex_ai): add Meta Muse models on Vertex AI (#50768) 2026-11-21 13:00:24 -08:00
test_vertex_ai_non_gemini.py
test_vertex_ai_psc_endpoint_support.py
test_vertex_ai_search_vector_store_transformation.py
test_vertex_gemini_gcs_uri_mime.py fix: preserve media across Responses and Gemini conversions (#48484) 2026-10-27 18:07:10 -07:00
test_vertex_global_url_support.py
test_vertex_image_generation.py
test_vertex_llm_base.py feat(bedrock): derive STS session tags and session name from caller identity (#52978) 2026-11-19 17:11:09 -08:00
test_vertex_model_garden_openapi.py
test_vertex_passthrough_logging_handler.py