> ## Documentation Index
> Fetch the complete documentation index at: https://ikun.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# 每分钟令牌数速率限制

<img src="https://mintcdn.com/ikun/fXmeJ7wKTC-4Xav-/images/tpm_issues.png?fit=max&auto=format&n=fXmeJ7wKTC-4Xav-&q=85&s=d7f3fc3fffc606e45cf1a6202e0815ce" alt="Chat with pdf" width="698" height="179" data-path="images/tpm_issues.png" />

如果您在使用专有模型（如 OpenAI 模型）时遇到被限制速率的问题，我们提供了设置 `exponential_backoff=True` 的选项，并将 `delay_between_retries` 的值更改为秒（默认为 1 秒）。

例如：

```python theme={null}
from agno.agent import Agent
from agno.models.openai import OpenAIChat

agent = Agent(
    model=OpenAIChat(id="gpt-4o"),
    description="You are an enthusiastic news reporter with a flair for storytelling!",
    markdown=True,
    exponential_backoff=True,
    delay_between_retries=2
)
agent.print_response("Tell me about a breaking news story from New York.", stream=True)
```

有关速率限制的具体信息，请参阅我们的 [模型文档](../models/)。

对于 OpenAI，它们有基于级别的速率限制。有关更多信息，请参见 [文档](https://platform.openai.com/docs/guides/rate-limits/usage-tiers)。
