Skip to main content

MODEL_RATE_LIMIT

你已达到模型提供商在给定时间段内允许的最大请求数,因此被暂时阻止。通常,此错误是暂时的,你的限制会在一段时间后重置。

¥You have hit the maximum number of requests that a model provider allows over a given time period and are being temporarily blocked. Generally, this error is temporary and your limit will reset after a certain amount of time.

故障排除

¥Troubleshooting

以下内容可能有助于解决此错误:

¥The following may help resolve this error:

  • 请联系你的模型提供商并要求提高速率限制。

    ¥Contact your model provider and ask for a rate limit increase.

  • 如果许多传入请求相同,请使用 模型响应缓存

    ¥If many of your incoming requests are the same, utilize model response caching.

  • 如果你的应用允许,请将请求分散到不同的提供程序。

    ¥Spread requests across different providers if your application allows it.

  • 初始化模型时,请设置更大的 最大重试次数 值。LangChain 将对以这种方式失败的请求使用指数退避策略,因此重试可能会在你的限制重置后发生。

    ¥Set a higher number of max retries when initializing your model. LangChain will use an exponential backoff strategy for requests that fail in this way, so the retry may occur when your limits have reset.