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:
Selcuk Gun
2025-04-12 17:34:57 -07:00
committed by GitHub
parent 089c1e6428
commit cfbcc17644
2 changed files with 2 additions and 2 deletions

View File

@@ -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,
)