Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion examples/langchain/anthropic_prompt_cache.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
load_dotenv(ROOT / ".env")

PROJECT_NAME = os.environ.get("BRAINTRUST_PROJECT", "py-sdk-demo-langchain-anthropic-cache")
MODEL = os.environ.get("ANTHROPIC_MODEL", "claude-sonnet-4-5-20250929")
MODEL = os.environ.get("ANTHROPIC_MODEL", "claude-sonnet-5")

# Anthropic prompt caching requires a sufficiently long cacheable prefix.
CACHEABLE_SYSTEM_PROMPT = "\n".join(
Expand Down
4 changes: 2 additions & 2 deletions py/src/braintrust/integrations/claude_agent_sdk/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
setup_claude_agent_sdk(project="my-project")

# Use normally - all calls are automatically traced
options = ClaudeAgentOptions(model="claude-sonnet-4-5-20250929")
options = ClaudeAgentOptions(model="claude-sonnet-5")
async with ClaudeSDKClient(options=options) as client:
await client.query("Hello!")
async for message in client.receive_response():
Expand Down Expand Up @@ -50,7 +50,7 @@ def setup_claude_agent_sdk(
setup_claude_agent_sdk(project="my-project")

# Now use claude_agent_sdk normally - all calls automatically traced
options = claude_agent_sdk.ClaudeAgentOptions(model="claude-sonnet-4-5-20250929")
options = claude_agent_sdk.ClaudeAgentOptions(model="claude-sonnet-5")
async with claude_agent_sdk.ClaudeSDKClient(options=options) as client:
await client.query("Hello!")
async for message in client.receive_response():
Expand Down
Loading