> ## Documentation Index
> Fetch the complete documentation index at: https://langchain-zh.cn/llms.txt
> Use this file to discover all available pages before exploring further.

# MODEL_RATE_LIMIT

<Note>
  目前仅在 `langchainjs`（JavaScript/TypeScript）中使用。
</Note>

你已触达模型提供商在特定时间段内允许的最大请求数，现被暂时限制访问。

此错误发生在你超过模型提供商在特定时间窗口内允许的最大请求数时，导致临时访问限制。该限制通常是暂时的，会在限额重置后解除。

## 故障排除

要解决此错误，你可以：

1. **实施速率限制**：部署速率限制器来调节发送给模型的请求频率。请参阅[速率限制](/oss/python/langchain/models#rate-limiting)文档。
2. **实施响应缓存**：当传入查询重复时，使用模型响应缓存来减少冗余请求。
3. **使用多个提供商**：如果应用架构支持，可将请求分发到多个提供商
4. **联系你的提供商**：联系你的模型提供商，请求提高速率限制

***

<div className="source-links">
  <Callout icon="edit">
    [Edit this page on GitHub](https://github.com/langchain-ai/docs/edit/main/src/i18n\zh-CN\oss\langchain\errors\MODEL_RATE_LIMIT.mdx) or [file an issue](https://github.com/langchain-ai/docs/issues/new/choose).
  </Callout>

  <Callout icon="terminal-2">
    [Connect these docs](/use-these-docs) to Claude, VSCode, and more via MCP for real-time answers.
  </Callout>
</div>
