I have an active OpenAi account and working key. Yet when I try to do embeddings or use a retrieval QA chain I get this error.
Retrying langchain.chat_models.openai.ChatOpenAI.completion_with_retry.._completion_with_retry in 4.0 seconds as it raised RateLimitError: Your account is not active, please check your billing details on our website…
Yet this code runs fine
llm_model = "gpt-3.5-turbo"
def get_completion(prompt, model=llm_model):
messages = [{"role": "user", "content": prompt}]
response = openai.ChatCompletion.create(
model=model,
messages=messages,
temperature=0,
)
return response.choices[0].message["content"]
get_completion('what is 2^32?')
So frustrating. I’m at a total loss. Can anyone help?