mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-09 03:18:44 +00:00
refactor: reuse Live sideband authentication dependency
This commit is contained in:
parent
0a5fba3636
commit
9af75b23e1
1 changed files with 4 additions and 1 deletions
|
|
@ -11918,11 +11918,14 @@ async def _reject_realtime_session(
|
|||
await _release_realtime_budget_reservation(user_api_key_dict)
|
||||
|
||||
|
||||
_CODEX_LIVE_AUTH_DEPENDENCY: Final = Depends(user_api_key_auth_websocket)
|
||||
|
||||
|
||||
@app.websocket("/v1/live/{call_id}")
|
||||
async def codex_live_sideband_endpoint(
|
||||
websocket: WebSocket,
|
||||
call_id: str,
|
||||
user_api_key_dict: UserAPIKeyAuth = Depends(user_api_key_auth_websocket),
|
||||
user_api_key_dict: UserAPIKeyAuth = _CODEX_LIVE_AUTH_DEPENDENCY,
|
||||
) -> None:
|
||||
from litellm.proxy.realtime_endpoints.call_sessions import codex_realtime_sideband
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue