Ruff format debug
This commit is contained in:
@@ -1074,12 +1074,12 @@ class InputImageRawFrame(SystemFrame, ImageRawFrame):
|
|||||||
return f"{self.name}(pts: {pts}, source: {self.transport_source}, size: {self.size}, format: {self.format})"
|
return f"{self.name}(pts: {pts}, source: {self.transport_source}, size: {self.size}, format: {self.format})"
|
||||||
|
|
||||||
|
|
||||||
@dataclass
|
@dataclass
|
||||||
class InputTextRawFrame(SystemFrame, TextFrame):
|
class InputTextRawFrame(SystemFrame, TextFrame):
|
||||||
"""Raw text input frame from transport.
|
"""Raw text input frame from transport.
|
||||||
|
|
||||||
Text input usually coming from user typing or programmatic text injection
|
Text input usually coming from user typing or programmatic text injection
|
||||||
that should be sent to LLM services as input, similar to how InputAudioRawFrame
|
that should be sent to LLM services as input, similar to how InputAudioRawFrame
|
||||||
and InputImageRawFrame represent user audio and video input.
|
and InputImageRawFrame represent user audio and video input.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
|||||||
@@ -970,15 +970,15 @@ class GeminiMultimodalLiveLLMService(LLMService):
|
|||||||
|
|
||||||
async def _send_user_text(self, text: str):
|
async def _send_user_text(self, text: str):
|
||||||
"""Send user text via Gemini Live API's realtime input stream.
|
"""Send user text via Gemini Live API's realtime input stream.
|
||||||
|
|
||||||
This method sends text through the realtimeInput stream (via TextInputMessage)
|
This method sends text through the realtimeInput stream (via TextInputMessage)
|
||||||
rather than the clientContent stream. This ensures text input is synchronized
|
rather than the clientContent stream. This ensures text input is synchronized
|
||||||
with audio and video inputs, preventing temporal misalignment that can occur
|
with audio and video inputs, preventing temporal misalignment that can occur
|
||||||
when different modalities are processed through separate API pathways.
|
when different modalities are processed through separate API pathways.
|
||||||
|
|
||||||
After sending the text, we signal turn completion to trigger a model response
|
After sending the text, we signal turn completion to trigger a model response
|
||||||
for text-only interactions.
|
for text-only interactions.
|
||||||
|
|
||||||
Args:
|
Args:
|
||||||
text: The text to send as user input.
|
text: The text to send as user input.
|
||||||
"""
|
"""
|
||||||
|
|||||||
Reference in New Issue
Block a user