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

# 图片代理

## 代码

```python cookbook/models/lmstudio/image_agent.py theme={null}
import httpx

from agno.agent import Agent
from agno.media import Image
from agno.models.lmstudio import LMStudio

agent = Agent(
    model=LMStudio(id="llama3.2-vision"),
    markdown=True,
)

response = httpx.get(
    "https://upload.wikimedia.org/wikipedia/commons/0/07/GoldenGateBridge-001.jpg"
)

agent.print_response(
    "给我讲讲这张图片",
    images=[Image(content=response.content)],
    stream=True,
)
```

## 使用方法

<Steps>
  <Snippet file="create-venv-step.mdx" />

  <Step title="安装 LM Studio">
    从[这里](https://lmstudio.ai/download)下载 LM Studio 并下载您想使用的模型。
  </Step>

  <Step title="安装库">`bash pip install -U agno `</Step>

  <Step title="运行代理">
    <CodeGroup>
      ```bash Mac theme={null}
      python cookbook/models/lmstudio/image_agent.py
      ```

      ```bash Windows theme={null}
      python cookbook/models/lmstudio/image_agent.py
      ```
    </CodeGroup>
  </Step>
</Steps>
