请问phidata如何运用ollama模型呢
1 Like
Hi @cnz
Thank you for reaching out and using Phidata! I’ve tagged the relevant engineers to assist you with your query. We aim to respond within 24 hours.
If this is urgent, please feel free to let us know, and we’ll do our best to prioritize it.
Thanks for your patience!
Hey @cnz, here is a code example to show how phidata uses the ollama model.
from phi.agent import Agent
from phi.model.ollama import Ollama
agent = Agent(model=Ollama(id="llama3.2"), markdown=True)
# Print the response in the terminal
agent.print_response("Share a 2 sentence horror story")