Files
crewAI/lib/crewai/src/crewai
Devin AI bd82aa9753 fix: handle streaming tool calls when available_functions is None
Fixes #4442 - async streaming fails with tool/function calls when
available_functions is not provided.

Added missing 'if tool_calls and not available_functions' handling to
4 OpenAI streaming methods:
- _handle_streaming_completion (sync Chat Completions)
- _ahandle_streaming_completion (async Chat Completions)
- _handle_streaming_responses (sync Responses API)
- _ahandle_streaming_responses (async Responses API)

The non-streaming counterparts already handle this case correctly.
The fix follows the same pattern used by the Azure provider.

Co-Authored-By: João <joao@crewai.com>
2026-02-10 11:23:26 +00:00
..
2026-01-28 11:52:47 -05:00
2025-10-20 14:10:19 -07:00
2026-02-05 12:49:54 -05:00
2025-10-21 17:36:08 -04:00
2025-10-20 14:10:19 -07:00
2025-10-20 14:10:19 -07:00