Hi, I don't understand why when I use the ChatGPT API since Python it doesn't let me do any request if I didn't do any request before xD. It says that I've exceeded my current quota, but, I haven't done any request with that token before.
code:
''
import os
import openai
from dotenv import load_dotenv
load_dotenv()
openai.api_key = os.getenv("OPENAI_TOKEN")
completion = openai.Completion()
prompt = "Hi, ¿how are you?"
model = "gpt-3.5-turbo"
temperature = 0.7
max_tokens = 60
response = completion.create(
engine=model,
prompt=prompt,
temperature=temperature,
max_tokens=max_tokens
)
message = response.choices[0].text.strip()
print(message)
''\
Error:
raise self.handle_error_response(
openai.error.RateLimitError: You exceeded your current quota, please check your plan and billing details.
Sorry if is a thing very obviously, I am new working with the API.