refactor(chatgpt): construct typed sideband requests

This commit is contained in:
jibanez-staticduo 2026-09-09 08:50:24 +02:00
parent 284cbc18ca
commit daa00a3401
No known key found for this signature in database

View file

@ -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),
)