I have a hacker pro plan, yesterday I used the Vertix AI API, but today I am always getting Error 500, please advise!
Hey, @MohamedSalama35 welcome to the forums!
Can you please provide a link to the repl? This way it is easier for staff and members of the community to help you!
Also see this guide on how to share your code:
here it is @NateDhaliwal : https://replit.com/@MohamedSalama35/API-for-traffivresearch
and that’s the error message appear while trying to connect to the API
Traceback (most recent call last):
File "main.py", line 5, in <module>
response = model.complete(["Write a tweet about the meaning of life: "], temperature=0.2)
File "/home/runner/API-for-traffivresearch/.pythonlibs/lib/python3.10/site-packages/replit/ai/modelfarm/completion_model.py", line 51, in complete
self._check_response(response)
File "/home/runner/API-for-traffivresearch/.pythonlibs/lib/python3.10/site-packages/replit/ai/modelfarm/model.py", line 57, in _check_response
raise InvalidResponseException(rjson["detail"])
replit.ai.modelfarm.exceptions.InvalidResponseException: Rate limit hit.
I can’t reproduce that. That seems to be a private repl, so only staff can see it.
I assume what happened is that there was some server issue (500) and then you constantly retried running the code so you hit the rate limit (which should be 429).
As for the rate limit, moving to a new repl might work
It says that you’re getting rate limited.
I’m assuming this isn’t the first time you’ve ran the Repl, and it’s because you’re calling the API way too much.
If not, then .
yes, I used the API many times, but there was no mention of rate limits in the docs or the blog post, where can find that, and is that rate limit for each day or month?
@UMARismyname @Spcfork @NateDhaliwal
It’s common for platforms to not disclose the rate limit algorithms, to prevent us exploiting vulnerabilities
If you run in Shell
curl -D - https://production-modelfarm.replit.com
and it gets you a rate limit, it might give you more info about the timeout
thanks, its working now, i belive its a daily limit
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.