How b0red-man/gem-live-text works
gem-live-text is a small FastAPI wrapper that exposes Gemini Live models through OpenAI-compatible endpoints. The principal workflow authenticates and validates a chat request, translates its messages and options into Gemini Live configuration, sends the turn to Gemini, then formats text or function-call events as a regular completion or an SSE stream. A separate endpoint lists supported models. The single-file implementation is shown at its actual function-level stages; no separate storage layer is present. Relationships are based on the README and the excerpted main.py.
Main entry points: main.py Chat Endpoint
Components 8
OpenAI API
- Bearer Auth
main.py - Model Listing
main.py - Chat Endpoint
main.py - Completion Formatting
main.py
Request Translation
- Request Builder
main.py
Gemini Live
- Live Generation
main.py
Other components
- API Client
- Gemini Live API
Connections 10
- API Client → Model Listing: requests models
README.md - API Client → Chat Endpoint: submits chat
README.md - Model Listing → Bearer Auth: requires
main.py - Chat Endpoint → Bearer Auth: requires
main.py - Chat Endpoint → Request Builder: builds config
main.py - Chat Endpoint → Live Generation: generates
main.py - Request Builder → Live Generation: provides turns
main.py - Live Generation → Gemini Live API: sends turn
main.py - Live Generation → Completion Formatting: yields events
main.py - Chat Endpoint → Completion Formatting: formats result
main.py