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:
@@ -70,7 +70,7 @@ class AudioTranscriber:
|
|||||||
|
|
||||||
history = ""
|
history = ""
|
||||||
for msg in previous_messages:
|
for msg in previous_messages:
|
||||||
content = msg.get("content")
|
content = msg.get("content", [])
|
||||||
if isinstance(content, str):
|
if isinstance(content, str):
|
||||||
history += f"{msg.get('role')}: {content}\n"
|
history += f"{msg.get('role')}: {content}\n"
|
||||||
else:
|
else:
|
||||||
|
|||||||
Reference in New Issue
Block a user