Fix type checking issue in LLM class

Co-Authored-By: Joe Moura <joao@crewai.com>
This commit is contained in:
Devin AI
2025-04-09 03:09:51 +00:00
parent 1a53894cd9
commit 474a584312

View File

@@ -879,9 +879,10 @@ class LLM(BaseLLM):
formatted_messages.append(msg)
continue
formatted_content: list[dict[str, str]] = [{"type": "text", "text": msg["content"]}]
formatted_messages.append({
"role": msg["role"],
"content": [{"type": "text", "text": msg["content"]}]
"content": formatted_content
})
return formatted_messages