I paid $10 for the OpenAI API, but the app didn't work

What amount is added to the amount for it to work?

RateLimitError: Error code: 429 - {'error': {'message': 'Request too large for gpt-3.5-turbo in organization org-ae9He8uqcKrTWnIrQmqMISpf on tokens per min (TPM): Limit 60000, Requested 82125. The input or output tokens must be reduced in order to run successfully. Visit https://platform.openai.com/account/rate-limits to learn more.', 'type': 'tokens', 'param': None, 'code': 'rate_limit_exceeded'}}

The issue here is that you have exceeded your rate limit. Rate limits are a function of the tier that you are in. As you have paid USD 10, you must be either in Tier 1. Here’s the overview of the applicable limits for Tier 1. You can find the full list here.

2 Likes

What is required of me to make the application work on the gpt-3.5-turbo model?

You can use the model. You just have to stay within the assigned limits. So for example, you can’t send more than 60,000 tokens per minute.

1 Like

I use this model. Is there another model I use?

embeddings = HuggingFaceEmbeddings(model_name="BAAI/bge-m3")

Well, that’s not an OpenAI model. You should be using one of OpenAI’s embedding models, e.g. text-embedding-ada-002

Here’s the overview: https://platform.openai.com/docs/models/embeddings

1 Like