You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
crewai create ... with Azure options generates a .env file with a lowercase model, but the code tries to load an uppercase MODEL, which falls back to the default model.
Error during LLM call: litellm.AuthenticationError: AuthenticationError: OpenAIException - The api_key client option must be set either by passing api_key to the client or by setting the OPENAI_API_KEY environment variable
python-BaseException
The text was updated successfully, but these errors were encountered:
- Update Azure provider config to use uppercase MODEL env var
- Add test case to verify MODEL env var handling
- Fixes#2139
Co-Authored-By: Joe Moura <[email protected]>
crewai create ...
with Azure options generates a.env
file with a lowercase model, but the code tries to load an uppercaseMODEL
, which falls back to the default model.Here is the line that breaks the execution:
crewAI/src/crewai/utilities/llm_utils.py
Line 80 in 1b488b6
The resulting trace looks like this:
The text was updated successfully, but these errors were encountered: