mirror of
https://github.com/crewAIInc/crewAI.git
synced 2026-01-10 08:38:30 +00:00
Fix type checking issue in LLM class
Co-Authored-By: Joe Moura <joao@crewai.com>
This commit is contained in:
@@ -879,9 +879,10 @@ class LLM(BaseLLM):
|
|||||||
formatted_messages.append(msg)
|
formatted_messages.append(msg)
|
||||||
continue
|
continue
|
||||||
|
|
||||||
|
formatted_content: list[dict[str, str]] = [{"type": "text", "text": msg["content"]}]
|
||||||
formatted_messages.append({
|
formatted_messages.append({
|
||||||
"role": msg["role"],
|
"role": msg["role"],
|
||||||
"content": [{"type": "text", "text": msg["content"]}]
|
"content": formatted_content
|
||||||
})
|
})
|
||||||
return formatted_messages
|
return formatted_messages
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user