Skip to content

Commit 9ad1880

Browse files
committed
uprev pai, use gateway
1 parent 442133e commit 9ad1880

File tree

3 files changed

+502
-34
lines changed

3 files changed

+502
-34
lines changed

durable-exec/twenty_questions.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
import logfire
66
from pydantic_ai import Agent, AgentRunResult, RunContext, UsageLimits
77

8-
logfire.configure(console=False)
8+
logfire.configure(send_to_logfire='if-token-present', console=False)
99
logfire.instrument_pydantic_ai()
1010

1111

@@ -18,7 +18,7 @@ class Answer(StrEnum):
1818

1919

2020
answerer_agent = Agent(
21-
'anthropic:claude-3-5-haiku-latest',
21+
'gateway/anthropic:claude-3-5-haiku-latest',
2222
# 'groq:openai/gpt-oss-120b',
2323
deps_type=str,
2424
instructions="""
@@ -41,7 +41,7 @@ class GameState:
4141

4242
# Agent that asks questions to guess the object
4343
questioner_agent = Agent(
44-
'openai:gpt-4.1',
44+
'gateway/openai:gpt-4.1',
4545
deps_type=GameState,
4646
instructions="""
4747
You are playing a question and answer game. You need to guess what object the other player is thinking of.

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ dependencies = [
1010
"fastapi>=0.115.14",
1111
"logfire[asyncpg,fastapi,httpx]>=4.10",
1212
"mcp>=1.15.0",
13-
"pydantic-ai>=1",
13+
"pydantic-ai>=1.18.0",
1414
"tavily-python>=0.7.12",
1515
"dbos>=2",
1616
]

0 commit comments

Comments
 (0)