When I am using crewai chat feature I get the following error, I have the openai api key in a .env file but do not understand why I am getting the following error, any help is highly appreciated, Crewai run is working fine but Crewai Chat does not work
Crewai chat
Starting a conversation with the Crew
Type ‘exit’ or Ctrl+C to quit.
Analyzing crew and required inputs - this may take 3 to 30 seconds depending on the complexity of your crew.
.
LiteLLM.Info: If you need to debug this error, use `litellm.set_verbose=True’.
ERROR:root:LiteLLM call failed: 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
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