Models
Fireworks
Example
from phi.agent import Agent
from phi.llm.fireworks import Fireworks
from phi.tools.duckduckgo import DuckDuckGo
agent = Agent(
llm=Fireworks(),
tools=[DuckDuckGo()],
show_tool_calls=True
)
agent.print_response("Whats happening in France?", markdown=True, stream=False)
Usage
1
Create a virtual environment
Open the Terminal
and create a python virtual environment.
2
Install libraries
pip install -U fireworks duckduckgo-search phidata
3
Export `FIREWORKS_API_KEY`
export FIREWORKS_API_KEY=xxx
4
Run fireworks Agent
python cookbook/llms/fireworks/agent.py
Information
- View on Github