Merge pull request #23460 from BerriAI/litellm_add_webrtc_support

Improve doc for WebRTC
This commit is contained in:
Sameer Kankute 2026-03-12 22:46:23 +05:30 • committed by GitHub
commit 3c322a879f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 4 additions and 3 deletions

View file

@ -57,11 +57,11 @@ litellm --config /path/to/config.yaml
## Client Usage
**1. Get token** — `POST /v1/realtime/client_secrets` with LiteLLM API key and `{ model }`.
**1. Get token** - `POST /v1/realtime/client_secrets` with LiteLLM API key and `{ model }`.
**2. WebRTC handshake** — Create `RTCPeerConnection`, add mic track, create data channel `oai-events`, send SDP offer to `POST /v1/realtime/calls` with `Authorization: Bearer <encrypted_token>` and `Content-Type: application/sdp`.
**2. WebRTC handshake** - Create `RTCPeerConnection`, add mic track, create data channel `oai-events`, send SDP offer to `POST /v1/realtime/calls` with `Authorization: Bearer <encrypted_token>` and `Content-Type: application/sdp`.
**3. Events** — Use the data channel for `session.update` and other events.
**3. Events** - Use the data channel for `session.update` and other events.
<details>
<summary>Full code example</summary>

View file

@ -669,6 +669,7 @@ const sidebars = {
"rag_ingest",
"rag_query",
"realtime",
"proxy/realtime_webrtc",
"rerank",
"response_api",
"response_api_compact",