mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-05 02:41:56 +00:00
refactor(chatgpt): construct typed sideband requests
This commit is contained in:
parent
284cbc18ca
commit
daa00a3401
1 changed files with 5 additions and 5 deletions
|
|
@ -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),
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue