The fastest, litest AI Gateway. Rust core with Python SDK. Call 100+ LLM APIs in OpenAI (or native) format with cost tracking, guardrails, load balancing, and logging [Bedrock, Azure, OpenAI, Anthropic, OpenAI, VertexAI, vLLM, Nvidia NIM]
Python ai-gatewayanthropicazure-openaibedrockgatewaylangchainlitellmllmllm-gatewayllmopsmcp-gatewayopenaiopenai-proxyrustrust-aivertex-ai
Improve doc for WebRTC
Sameer Kankutecf1d330e6345
diff --git a/docs/my-website/blog/realtime_webrtc_http_endpoints/index.md b/docs/my-website/blog/realtime_webrtc_http_endpoints/index.mdindex 1316b5c7308..3ac300a6f3f 100644--- a/docs/my-website/blog/realtime_webrtc_http_endpoints/index.md+++ b/docs/my-website/blog/realtime_webrtc_http_endpoints/index.md@@ -22,31 +22,16 @@ hide_table_of_contents: falseimport WebRTCTester from '@site/src/components/WebRTCTester';-Connect to the Realtime API via WebRTC from browser/mobile clients. LiteLLM handles auth and key management; audio streams directly to OpenAI/Azure.+Connect to the Realtime API via WebRTC from browser/mobile clients. LiteLLM handles auth and key management.-**Providers:** OpenAI · Azure OpenAI+## How it works-:::info **WebRTC vs WebSocket**-- **WebSocket** (`/v1/realtime`) — server-to-server-- **WebRTC** (`/v1/realtime/client_secrets` + `/v1/realtime/calls`) — browser/mobile, lower latency-:::+-## How it works+**Flow of generating ephemeral token**-LiteLLM issues tokens and relays SDP; audio never passes through the proxy.+-```-Browser LiteLLM Proxy OpenAI/Azure- | | |- |-- POST /v1/realtime/ | |- | client_secrets -------->|-- POST sessions -------->|- | |<-- { ek_... } -----------|- |<-- { encrypted_token } ---| |- |-- POST /v1/realtime/calls |-- POST calls ----------->|- | [SDP + token] --------->| |- |<-- SDP answer ------------|<-- SDP answer -----------|- |===== audio P2P direct to OpenAI/Azure =============>|-```## Proxy Setupdiff --git a/docs/my-website/img/ephemeral_token.png b/docs/my-website/img/ephemeral_token.pngnew file mode 100644index 00000000000..28a05f9eb1bBinary files /dev/null and b/docs/my-website/img/ephemeral_token.png differdiff --git a/docs/my-website/img/webrtc_flow.png b/docs/my-website/img/webrtc_flow.pngnew file mode 100644index 00000000000..a53ec10a7b7Binary files /dev/null and b/docs/my-website/img/webrtc_flow.png differ