-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Gemini連續429錯誤 #406
Comments
我研究下,谢谢 |
Can not translate by other reason.(因安全问题不能翻译) |
我現在就是用付費版,問題應該真的是延遲與否,因為就算是付費,只要翻譯的句太短、太多句子太短,就會達到請求的上限。 之前我翻譯的書本比較古老,每一段都很長,所以沒這問題。 |
把gemini_translator.py中time.sleep修改成1秒或者3秒试试?
|
应该是 gemini 需要付费的问题(得换 key 否则会频繁 limit 我之后研究下 |
找了几本书,连续用Gemini付费接口测试翻译,均没有报429错误。 |
今天試了下,還是一樣容易連續跳出429。或許這是我的網路的問題。 |
忘了說。 |
大概多少文字你这本书?如果书分章节,可以分章节翻译 |
感觉还像 limit 问题,我一会儿把 base model 换成 flash |
how the rate-limiting works in generals, if I try to use the Gemini flash 1.5 which is free, and I have a certain amount of requests per minute and per day, how easy is it to implement those restrictions? |
錯誤訊息如下:
429 Resource has been exhausted (e.g. check quota).
Can not translate by other reason.(因安全问题不能翻译)
我試過使用數個API keys,但不論我用哪種方式(像加上${,}或(,)或直接加,),
系統都只會傳400錯誤(API keys無效)。
Gemini好像可以用延遲來改善429錯誤,
但我不確定這段python要插入哪裡才好。以下是Google說延遲可用的程式碼:
https://developers.google.com/google-ads/api/samples/handle-rate-exceeded-error?hl=zh-tw#python
The text was updated successfully, but these errors were encountered: