> ## 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.

# 模型是什么？

> 语言模型是机器学习程序，经过训练以理解自然语言和代码。

模型充当 Agent 的**大脑** - 帮助它进行推理、行动并响应用户。模型越好，Agent 就越智能。

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

agent = Agent(
    model=OpenAIChat(id="gpt-4o"),
    description="Share 15 minute healthy recipes.",
    markdown=True,
)
agent.print_response("Share a breakfast recipe.", stream=True)
```

## 错误处理

您可以在 `Agent` 上将 `exponential_backoff` 设置为 `True`，以自动重试因第三方模型提供程序错误而失败的请求。

```python theme={null}
agent = Agent(
    model=OpenAIChat(id="gpt-4o"),
    exponential_backoff=True,
    retries=2,
    retry_delay=1,
)
```

## 支持的模型

Agno 支持以下模型提供程序：

* [AI/ML API](/models/aimlapi)
* [Anthropic](/models/anthropic)
* [AWS Bedrock](/models/aws-bedrock)
* [Azure AI Foundry](/models/azure-ai-foundry)
* [Claude via AWS Bedrock](/models/aws-claude)
* [Cohere](/models/cohere)
* [DeepSeek](/models/deepseek)
* [Fireworks](/models/fireworks)
* [Google Gemini](/models/google)
* [Groq](/models/groq)
* [Hugging Face](/models/huggingface)
* [LiteLLM](/models/litellm)
* [Mistral](/models/mistral)
* [NVIDIA](/models/nvidia)
* [Nebius AI Studio](/models/nebius)
* [Ollama](/models/ollama)
* [OpenAI](/models/openai)
* [OpenAI Like](/models/openai-like)
* [OpenAI via Azure](/models/azure-openai)
* [OpenRouter](/models/openrouter)
* [Perplexity](/models/perplexity)
* [Sambanova](/models/sambanova)
* [Together](/models/together)
* [vLLM](/models/vllm)
* [xAI](/models/xai)
