Why did I get RateLimitError: You exceeded your current quota, please check your plan and billing details.
? I was subscribed, and this is my first request. I paid for my subscription.
Here is my code:
import openai
KEY = "mykeyhere it is checked over 10 times" //i tries to create new keys, not working, all times RATELIMITERROR
openai.api_key = KEY
def generate_response(text):
response = openai.Completion.create(
prompt=text,
engine='text-davinci-003',
max_tokens=100,
temperature=0.7,
n=1,
stop=None,
timeout=15
)
if response and response.choices:
return response.choices[0].text.strip()
else:
return None
res = generate_response("Hello, how are you?")
print(res)
What did I do wrong, and why did my first request give this error?