Files
crewAI/lib
Devin AI 06c4974cb3 fix: exclude empty stop parameter from LLM completion params
This fixes issue #4149 where models like gpt-5.1 don't support the
stop parameter at all. Previously, an empty list was always passed
to the API, causing an error.

Changes:
- Only include stop in params when it has values (non-empty)
- Respect additional_drop_params to ensure retry logic works correctly
- Add tests to verify the fix

Co-Authored-By: João <joao@crewai.com>
2025-12-24 07:12:18 +00:00
..
2025-12-19 15:47:00 -05:00
2025-12-19 15:47:00 -05:00