Skip to content

Commit

Permalink
Add basic cookbooks for o1 (#1794)
Browse files Browse the repository at this point in the history
## Description

This adds some basic cookbooks to show o1 working.
  • Loading branch information
dirkbrnd authored Jan 17, 2025
1 parent a9b942c commit 2b4d5a8
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions cookbook/providers/openai/o1/o1.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
from phi.agent import Agent, RunResponse # noqa
from phi.model.openai import OpenAIChat

# This will only work if you have access to the o1 model from OpenAI
agent = Agent(model=OpenAIChat(id="o1"))

# Print the response in the terminal
agent.print_response("What is the closest galaxy to milky way?")

0 comments on commit 2b4d5a8

Please sign in to comment.