Add type ignore comment to fix type checking issue

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

View File

@@ -879,10 +879,9 @@ 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": formatted_content
"content": [{"type": "text", "text": msg["content"]}] # type: ignore
})
return formatted_messages