mirror of
https://github.com/crewAIInc/crewAI.git
synced 2026-05-06 01:32:36 +00:00
Fixes #5622 - Strip whitespace/newlines from OPENAI_API_KEY when read from env vars or passed directly (in _normalize_openai_fields and _get_client_params) - Strip whitespace from env var values in llm_utils.py fallback path - Add specific AuthenticationError handling in all OpenAI completion methods (sync/async, completions/responses) with troubleshooting guidance for users - Let AuthenticationError propagate through call()/acall() without being swallowed by the generic Exception handler - Add comprehensive tests covering whitespace stripping and auth error handling Co-Authored-By: João <joao@crewai.com>