Hi,
I am trying to run a Crew on CrewAI Enterprise, but the execution is failing with an error.
The Crew worked locally before being deployed via GitHub.
The LLM Connection was created and configured to use the Azure GPT-4o model (azure/gpt-4o
).
I tested setting the environment variables in the project’s .env
file, the deployment setup, and directly in CrewAI Enterprise’s environment variables, but none of these methods worked.
The error message is as follows:
Error Type:
AuthenticationError
Error Message:
litellm.AuthenticationError: AzureException AuthenticationError - Error code: 401 - {'statusCode': 401, 'message': 'Unauthorized. Access token is missing, invalid, audience is incorrect (https://cognitiveservices.azure.com), or have expired.'}
Does anyone know how to solve this?