diff --git a/lib/crewai/src/crewai/llm.py b/lib/crewai/src/crewai/llm.py index 4e73033477..d10a6142d1 100644 --- a/lib/crewai/src/crewai/llm.py +++ b/lib/crewai/src/crewai/llm.py @@ -1171,7 +1171,7 @@ def _handle_non_streaming_response( call_type=LLMCallType.LLM_CALL, from_task=from_task, from_agent=from_agent, - messages=params["messages"], + messages=messages, ) return structured_response @@ -1315,7 +1315,7 @@ async def _ahandle_non_streaming_response( call_type=LLMCallType.LLM_CALL, from_task=from_task, from_agent=from_agent, - messages=params["messages"], + messages=messages, ) return structured_response