services(gemini_multimodal_live): set content to [] if not present in messages

... which it will be if the message is a tool call
This commit is contained in:
vipyne
2025-01-16 11:58:55 -06:00
parent b8ffd7b16b
commit 8ba3b150eb

View File

@@ -70,7 +70,7 @@ class AudioTranscriber:
history = ""
for msg in previous_messages:
content = msg.get("content")
content = msg.get("content", [])
if isinstance(content, str):
history += f"{msg.get('role')}: {content}\n"
else: