diff --git a/src/pipecat/services/gemini_multimodal_live/events.py b/src/pipecat/services/gemini_multimodal_live/events.py index 3fb04b147..8f89b977f 100644 --- a/src/pipecat/services/gemini_multimodal_live/events.py +++ b/src/pipecat/services/gemini_multimodal_live/events.py @@ -195,7 +195,7 @@ class VideoInputMessage(BaseModel): class TextInputMessage(BaseModel): """Message containing text input data.""" - realtimeInput: RealtimeInput + text: str @classmethod def from_text(cls, text: str) -> "TextInputMessage": @@ -207,7 +207,7 @@ class TextInputMessage(BaseModel): Returns: A TextInputMessage instance. """ - return cls(realtimeInput=RealtimeInput(text=text)) + return cls(text=text) class ClientContentMessage(BaseModel):