#Error code: 429

1 messages · Page 1 of 1 (latest)

pastel junco
#

Heya, I'm trying to get into including GPT in some of my open source projects and I'm struggling to get started with it

My issue is that it believes that my monthly quota has been used up, although I do not believe this is the case

from openai import OpenAI

client = OpenAI(api_key="censored")

stream = client.chat.completions.create(
    model="gpt-3.5-turbo",
    messages=[{"role": "user", "content": "Say this is a test"}],
    stream=True,
)
for chunk in stream:
    if chunk.choices[0].delta.content is not None:
        print(chunk.choices[0].delta.content, end="")

Here is the program I'm working with, I took it from the API documentation and basically just tried to paste it in with my API key

However I recieve the error:

raise self._make_status_error_from_response(err.response) from None
openai.RateLimitError: Error code: 429 - {'error': {'message': 'You exceeded your current quota, please check your plan and billing details. For more information on this error, read the docs: https://platform.openai.com/docs/guides/error-codes/api-errors.', 'type': 'insufficient_quota', 'param': None, 'code': 'insufficient_quota'}}

The weird part? Here's a screenshot of my API usage insights

#

Please @ me for any responses! Much appreciated