mirror of
https://github.com/tiennm99/litellm.git
synced 2026-08-02 10:21:52 +00:00
Improve doc for WebRTC
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -669,6 +669,7 @@ const sidebars = {
|
||||
"rag_ingest",
|
||||
"rag_query",
|
||||
"realtime",
|
||||
"proxy/realtime_webrtc",
|
||||
"rerank",
|
||||
"response_api",
|
||||
"response_api_compact",
|
||||
|
||||
Reference in New Issue
Block a user