Last active
November 17, 2024 21:47
-
-
Save anuragts/650f4ac45e4afaebb4db97175416dd76 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"""Run `pip install ollama 'fastapi[standard]' phidata` to install dependencies.""" | |
"Pull the local model with - ollama pull hhao/qwen2.5-coder-tools:32b" | |
from textwrap import dedent | |
from datetime import datetime | |
from phi.agent import Agent | |
from phi.playground import Playground, serve_playground_app | |
from phi.model.ollama import Ollama | |
coding_agent = Agent( | |
name="Coding Agent", | |
agent_id="coding_agent", | |
model=Ollama(id="hhao/qwen2.5-coder-tools:32b"), | |
reasoning = True, | |
markdown=True, | |
debug_mode=True, | |
add_history_to_messages=True, | |
description="You are a coding agent", | |
add_datetime_to_instructions=True, | |
) | |
app = Playground(agents=[coding_agent]).get_app() | |
if __name__ == "__main__": | |
serve_playground_app("demo:app", reload=True) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment