Files
crewAI/lib
Devin AI 25a13a0dd1 fix(llm): use validated messages variable instead of raw params['messages'] access
Replace all direct params['messages'] accesses with params.get('messages', [])
or the locally validated 'messages' variable in _handle_non_streaming_response,
_ahandle_non_streaming_response, and _handle_streaming_response.

When the 'messages' key is missing from params, the code now gracefully handles
it instead of raising a confusing KeyError.

Closes #5164

Co-Authored-By: João <joao@crewai.com>
2026-03-30 12:10:02 +00:00
..
2026-03-27 11:26:04 +08:00