mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-07 02:59:05 +00:00
fix(gemini realtime): cast maxOutputTokens to int for typeddict assignment
This commit is contained in:
parent
61928b9704
commit
6299633138
1 changed files with 3 additions and 3 deletions
|
|
@ -1467,9 +1467,9 @@ class GeminiRealtimeConfig(BaseRealtimeConfig):
|
|||
"maxOutputTokens"
|
||||
)
|
||||
if tool_call_max_output_tokens is not None:
|
||||
tool_call_done_event["response"][
|
||||
"max_output_tokens"
|
||||
] = tool_call_max_output_tokens
|
||||
tool_call_done_event["response"]["max_output_tokens"] = cast(
|
||||
int, tool_call_max_output_tokens
|
||||
)
|
||||
returned_message.append(tool_call_done_event)
|
||||
# Reset IDs so the next model turn (after tool results) starts a
|
||||
# fresh response with its own response.created preamble.
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue