mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-06 08:16:43 +00:00
Improve doc for WebRTC
This commit is contained in:
parent
cf1d330e63
commit
8bbebb5d75
2 changed files with 4 additions and 3 deletions
|
|
@ -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",
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue