From daa00a3401b8923b7231689570a598ad85c2c6a7 Mon Sep 17 00:00:00 2001 From: jibanez-staticduo Date: Wed, 9 Sep 2026 08:50:24 +0200 Subject: [PATCH] refactor(chatgpt): construct typed sideband requests --- litellm/llms/chatgpt/codex.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/litellm/llms/chatgpt/codex.py b/litellm/llms/chatgpt/codex.py index ad801dcdcdb..85388d8c386 100644 --- a/litellm/llms/chatgpt/codex.py +++ b/litellm/llms/chatgpt/codex.py @@ -67,8 +67,8 @@ def parse_call_response(response: httpx.Response, alias: str, owner: str, expire def build_sideband_request(call: CodexRealtimeCall) -> CodexSidebandRequest: - return { - "model": f"chatgpt/{call.model}", - "chatgpt_realtime_call_id": call.call_id, - "query_params": {"model": call.model}, - } + return CodexSidebandRequest( + model=f"chatgpt/{call.model}", + chatgpt_realtime_call_id=call.call_id, + query_params=RealtimeQueryParams(model=call.model), + )