mirror of
https://github.com/BerriAI/litellm.git
synced 2026-11-26 22:30:11 +00:00
* 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> |
||
|---|---|---|
| .. | ||
| __init__.py | ||
| test_gemini_realtime_transformation.py | ||