You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
今天又测试了一下,发现缺少对Claude API rate_limit_error 的处理,没记错OpenAI 报错会发一个message之类的信息,里面就可以写上rate limit,或者我记得官方就有rate limit error来着。
我的想法是,当探测到返回字段是:
{"error":{"type":"rate_limit_error","message":"Number of concurrent connections to Claude exceeds your rate limit. Please try again, or contact sales@anthropic.com to discuss your options for a rate limit increase."}}
的时候,就构造一个message返回,或者429报错。
此外,Claude给的免费API的rate是1秒一次,未来能否搞一个排队之类的功能。
The text was updated successfully, but these errors were encountered:
今天又测试了一下,发现缺少对Claude API rate_limit_error 的处理,没记错OpenAI 报错会发一个message之类的信息,里面就可以写上rate limit,或者我记得官方就有rate limit error来着。
我的想法是,当探测到返回字段是:
的时候,就构造一个message返回,或者429报错。
此外,Claude给的免费API的rate是1秒一次,未来能否搞一个排队之类的功能。
The text was updated successfully, but these errors were encountered: