mirror of
https://github.com/EvolutionAPI/adk-python.git
synced 2025-12-18 19:32:21 -06:00
Fix empty list in content on tool calls causing ollama parse error (#102)
This is related to google/adk-python#49
This commit is contained in:
@@ -178,7 +178,7 @@ def _content_to_message_param(
|
||||
|
||||
return ChatCompletionAssistantMessage(
|
||||
role=role,
|
||||
content=_get_content(content.parts),
|
||||
content=_get_content(content.parts) or None,
|
||||
tool_calls=tool_calls or None,
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user