mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-08 03:08:45 +00:00
fix(gemini realtime): cast merged realtimeInputConfig for typeddict assignment
mypy flagged the assignment of the merged dict into BidiGenerateContentSetup.realtimeInputConfig with [typeddict-item]: the intermediate variable widens to dict[Any, Any], losing the TypedDict narrowing the previous dict-literal form had.
This commit is contained in:
parent
bafc187248
commit
d1a9da3514
1 changed files with 4 additions and 1 deletions
|
|
@ -397,7 +397,10 @@ class GeminiRealtimeConfig(BaseRealtimeConfig):
|
|||
**original_automatic_activity_detection,
|
||||
**new_automatic_activity_detection,
|
||||
}
|
||||
follow_up_setup["realtimeInputConfig"] = merged_realtime_input_config
|
||||
follow_up_setup["realtimeInputConfig"] = cast(
|
||||
BidiGenerateContentRealtimeInputConfig,
|
||||
merged_realtime_input_config,
|
||||
)
|
||||
verbose_logger.debug(
|
||||
"Gemini Realtime: Forwarding session.update as follow-up setup"
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue