mirror of
https://github.com/crewAIInc/crewAI.git
synced 2026-07-03 22:19:27 +00:00
fix(llm): use validated messages variable in non-streaming handlers
This commit is contained in:
@@ -1160,7 +1160,7 @@ class LLM(BaseLLM):
|
||||
call_type=LLMCallType.LLM_CALL,
|
||||
from_task=from_task,
|
||||
from_agent=from_agent,
|
||||
messages=params["messages"],
|
||||
messages=messages,
|
||||
usage=None,
|
||||
)
|
||||
return structured_response
|
||||
@@ -1316,7 +1316,7 @@ class LLM(BaseLLM):
|
||||
call_type=LLMCallType.LLM_CALL,
|
||||
from_task=from_task,
|
||||
from_agent=from_agent,
|
||||
messages=params["messages"],
|
||||
messages=messages,
|
||||
usage=None,
|
||||
)
|
||||
return structured_response
|
||||
|
||||
Reference in New Issue
Block a user