feat: add Gemini Live API docs (Python + JavaScript)#207
Open
naga-k wants to merge 3 commits intoandrewyng:mainfrom
Open
feat: add Gemini Live API docs (Python + JavaScript)#207naga-k wants to merge 3 commits intoandrewyng:mainfrom
naga-k wants to merge 3 commits intoandrewyng:mainfrom
Conversation
Adds real-time voice/video streaming API documentation covering LiveConnectConfig, VAD, tool calling, session management, and raw WebSocket API. Both Python (google-genai) and JavaScript (@google/genai) variants with reference files for advanced topics. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
- Make JS tool handler async (was silently serializing Promises) - Add None guard on model_turn.parts in Python receive loop - Remove non-standard revision frontmatter field - Add server-side-only warning to raw WebSocket endpoints - Add auth note to ephemeral token fetch example - Show complete reconnect loop with GoAway handling - Add history_config example for 3.1 Flash send_client_content - Add error handling guidance to receive loop sections Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Ephemeral tokens section already covers the browser case. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
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.
Summary
Adds documentation for the Gemini Live API (real-time bidirectional voice/video/text streaming over WebSocket) to the content registry. This API was missing from chub — search for "gemini live" returned no results.
Python variant (
content/gemini/docs/live/python/DOC.md, 406 lines):client.aio.live.connectasync context manager patternsend_realtime_inputfor audio/text/video,session.receive()async iteratorLiveConnectConfigwith VAD, thinking, tools, session resumptionJavaScript variant (
content/gemini/docs/live/javascript/DOC.md, 422 lines):ai.live.connectcallback-based pattern (onmessage,onerror,onclose)sendRealtimeInputfor audio/text/videoBoth variants include
references/advanced.mdcovering:Details
gemini-3.1-flash-live-preview(recommended) andgemini-2.5-flash-live-previewname: livefor variant groupingsource: community,updated-on: 2026-03-29chub build content/ --validate-onlypasses (1554 docs, 7 skills)Review Notes
model_turn.partsNone guard added to Python receive loophistory_configfor 3.1 Flashsend_client_contentnow shown in code🤖 Generated with Claude Code