Skip to content
Open
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/bedrock.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env -S poetry run python
#!/usr/bin/env -S uv run python

# Note: you must have installed `anthropic` with the `bedrock` extra
# e.g. `pip install -U anthropic[bedrock]`
Expand Down
2 changes: 1 addition & 1 deletion examples/text_completions_demo_async.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env -S poetry run python
#!/usr/bin/env -S uv run python

import asyncio

Expand Down
2 changes: 1 addition & 1 deletion examples/text_completions_demo_sync.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env -S poetry run python
#!/usr/bin/env -S uv run python

import anthropic
from anthropic import Anthropic
Expand Down
2 changes: 1 addition & 1 deletion examples/text_completions_streaming.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env -S poetry run python
#!/usr/bin/env -S uv run python

import asyncio

Expand Down
2 changes: 1 addition & 1 deletion examples/tools_runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def get_weather(location: str, units: Literal["c", "f"]) -> str:
def main() -> None:
runner = client.beta.messages.tool_runner(
max_tokens=1024,
model="claude-3-5-sonnet-latest",
model="claude-sonnet-4-5-20250929",
# alternatively, you can use `tools=[anthropic.beta_tool(get_weather)]`
tools=[get_weather],
messages=[{"role": "user", "content": "What is the weather in SF?"}],
Expand Down
2 changes: 1 addition & 1 deletion examples/workload_identity.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ async def main() -> None:
),
)
msg = await aclient.messages.create(
model="claude-opus-4-5",
model="claude-opus-4-7",
max_tokens=1024,
messages=[{"role": "user", "content": "Hello"}],
)
Expand Down