mirror of
https://github.com/crewAIInc/crewAI.git
synced 2026-01-09 16:18: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)
|
||||
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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user