Hello
It is the first time in my life that I have started to use the openAI api with my api key and what is my surprise that when I run this simple example
import ast # for converting embeddings saved as strings back to arrays
import openai # for calling the OpenAI API
import pandas as pd # for storing text and embeddings data
import tiktoken # for counting tokens
from scipy import spatial # for calculating vector similarities for search
# models
EMBEDDING_MODEL = "text-embedding-ada-002"
GPT_MODEL = "gpt-3.5-turbo"
# an example question about the 2022 Olympics
query = "Which athletes won the gold medal in curling at the 2022 Winter Olympics?"
response = openai.ChatCompletion.create(
messages=[
{
"role": "system",
"content": "You answer questions about the 2022 Winter Olympics.",
},
{"role": "user", "content": query},
],
model=GPT_MODEL,
temperature=0,
)
print(response["choices"][0]["message"]["content"])
it gives me this error
openai.error.RateLimitError: You exceeded your current quota, please check your plan and billing details.
I am a plus account and when I look at the consumption of the api in the portal it is empty
Any idea, please?
Thanks