Relative Content

Tag Archive for openai-apilarge-language-modelapi-key

Route LLM implementation OpenAI API key error

I’m trying to implement a simple Route LLM Module using OpenAI and Groq. I keep getting an error saying “openai.OpenAIError: 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”.

Route LLM implementation OpenAI API key error

I’m trying to implement a simple Route LLM Module using OpenAI and Groq. I keep getting an error saying “openai.OpenAIError: 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”.