mirror of
https://github.com/BerriAI/litellm.git
synced 2026-11-25 22:20:43 +00:00
* feat(realtime): GPT-Live over WebRTC with sideband attach, and bill WebRTC calls from a proxy sideband Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> * fix(realtime): pin sidebands to the session's deployment and authorize Live WebRTC like Live WebSocket Run model-aware auth and the guardrail check before the provider session is created, authorize the attaching key for the session model, release an unmetered attach's budget hold and slot, forward call_id to Azure, and hand back provider errors on create. Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> * fix(realtime): refuse WebRTC calls the proxy cannot meter, attach by creating key only, and pin Realtime sidebands Wait for the billing sideband to join before returning the SDP answer, limit Live attach to the key that created the session, keep a Realtime WebRTC call on the deployment that minted its client secret, and select the Live deployment with the caller's request data. Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> * fix(realtime): narrow the minted client secret to a string before it is encoded Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> * fix(realtime): resolve a deployment's stored credential when creating a Live WebRTC session Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> * fix(realtime): stop a billing sideband that did not join in time Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> * fix(realtime): let a refused billing sideband release its holds before it is stopped Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> * feat(realtime): rejoin a billing sideband that drops while its WebRTC call still runs Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> * fix(realtime): carry the seconds each sideband billed to the one that rejoins, and stop a sideband given up on while it connects Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> * feat(realtime): authorize GPT-Live delegation against the key and keep retrying a dropped billing sideband A Live session can delegate work to a second model and to vector stores. The delegated model and vector store ids are now checked against the calling key on WebRTC create, on the WebSocket session.start, and on later client frames that pass through the proxy. A billing sideband that drops mid-call is now rejoined with a bounded, growing wait (1s up to 30s, 8 tries) and stops as soon as the provider reports the call gone. The caller's call is never ended by the proxy. Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> * fix(realtime): check JSON-escaped delegation frames and enforce the tool allowlist on GPT-Live delegation Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> * refactor(realtime): walk a GPT-Live delegation without recursion Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> * fix(realtime): join an Azure WebRTC call's sideband on the GA route when the deployment is configured for beta Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> * fix(realtime): keep the billing sideband out of the call, bound its rejoins, add meter_webrtc_calls, shrink the client secret The proxy's sideband no longer runs guardrails or sends anything into a WebRTC call. A rejoin the proxy refuses itself is tried at most three times and logs one warning. general_settings.meter_webrtc_calls set to false starts WebRTC calls without the billing sideband. The realtime client secret carries the key's hash and the key is read again when the call starts. POST /v1/live/sessions refuses any transport other than webrtc. Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> * fix(realtime): send a delegated GPT-Live model under its provider name and hold it to its model budget A GPT-Live session that delegates to a proxy model group now reaches the provider with the model that group is configured to call, on WebRTC create, on the WebSocket session.start and on later client frames the proxy relays. A delegation to a model whose model_max_budget is used up is refused before the provider is called, and what a delegated response cost is charged to the delegated model's budget while the session's own model pays for the rest. Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> * fix(realtime): charge a delegated response to every budgeted model group that calls its model The provider reports a delegated response under its own model name, so when two proxy model groups call that model the charge went to the first one by name and the budget that admitted the delegation could stay untouched. Each budgeted group that calls the model is now charged. Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> * fix(realtime): charge a delegated response to a team model's public name A team-scoped deployment is routed under an internal name while its budget is keyed by the public name, so the public name now counts as a name the delegated model's budget can be charged under. Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> * fix(realtime): charge a delegated response once to a budget that covers several of its names A wildcard or access-group budget resolves every name of the delegated model to one counter, so the counters are now deduplicated per delegated response before they are charged. Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> * fix(realtime): charge a delegated response only to deployments of that model or a dated snapshot of it A deployment of gpt-4o no longer matches a delegated gpt-4o-mini response by prefix. Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> * fix(realtime): charge a delegated response to its model's budget at the session's regional price Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> * fix(realtime): check a delegation against every budget it is charged to, keep tool schemas unchanged, and read the minting key from the key cache Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> * fix(realtime): rename delegated models by walking past tool schemas, linear in the size of the delegation Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> * fix(realtime): a token always names its minting key, and a delegation the proxy cannot fully read is refused Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> * fix(realtime): drop the token fallback for an unreadable minting key, and never look the master key up as a stored key Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> --------- Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> |
||
|---|---|---|
| .. | ||
| chat | ||
| completion | ||
| decisions | ||
| embeddings | ||
| evals | ||
| image_generation | ||
| image_variations | ||
| live | ||
| realtime | ||
| responses | ||
| speech | ||
| transcriptions | ||
| vector_store_files | ||
| vector_stores | ||
| videos | ||
| __init__.py | ||
| test_cost_calculation.py | ||
| test_data_residency.py | ||
| test_gpt_reasoning_transformation.py | ||
| test_is_model_gpt_5_model.py | ||
| test_o_series_transformation.py | ||
| test_openai.py | ||
| test_openai_audio_speech.py | ||
| test_openai_authentication_error.py | ||
| test_openai_common_utils.py | ||
| test_openai_empty_response.py | ||
| test_openai_file_content_streaming.py | ||
| test_openai_image_edit_transformation.py | ||
| test_openai_workload_identity.py | ||
| test_organization_costs.py | ||
| test_use_chat_completions_api_no_leak.py | ||