mirror of
https://github.com/crewAIInc/crewAI.git
synced 2026-01-09 14:37:59 -05:00
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>