Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
from agno.agent import Agent from agno.media import Image from agno.models.groq import Groq agent = Agent(model=Groq(id="llama-3.2-90b-vision-preview")) agent.print_response( "告诉我关于这张图片的信息", images=[ Image(url="https://upload.wikimedia.org/wikipedia/commons/f/f2/LPU-v1-die.jpg"), ], stream=True, )
创建虚拟环境
Terminal
python3 -m venv .venv source .venv/bin/activate
设置您的 API 密钥
export GROQ_API_KEY=xxx
安装库
pip install -U groq agno
运行代理
python cookbook/models/groq/image_agent.py