Example

from phi.agent import Agent
from phi.llm.together import Together

agent = Agent(
    llm=Together(model="mistralai/Mixtral-8x7B-Instruct-v0.1"),
    description="You help people with their health and fitness goals.",
)
agent.print_response("Share a 2 sentence quick and healthy breakfast recipe.", markdown=True)

Usage

1

Create a virtual environment

Open the Terminal and create a python virtual environment.

2

Install libraries

pip install -U openai phidata
3

Export `TOGETHER_API_KEY`

export TOGETHER_API_KEY=xxx
4

Run Together Agent

python cookbook/llms/together/agent.py

Information