diff --git a/examples/example-ai-anthropic/chat.py b/examples/example-ai-anthropic/chat.py index 9a17424e3..c8a024070 100644 --- a/examples/example-ai-anthropic/chat.py +++ b/examples/example-ai-anthropic/chat.py @@ -58,7 +58,7 @@ def get_weather(latitude: float, longitude: float, location_name: str) -> str: message = client.messages.create( - model="claude-sonnet-4-5-20250929", + model="claude-sonnet-5-5", max_tokens=1024, tools=tools, messages=[{"role": "user", "content": "What's the weather like in San Francisco?"}], diff --git a/examples/example-ai-anthropic/extended_thinking.py b/examples/example-ai-anthropic/extended_thinking.py index 7254c6904..cfc445e1f 100644 --- a/examples/example-ai-anthropic/extended_thinking.py +++ b/examples/example-ai-anthropic/extended_thinking.py @@ -34,9 +34,9 @@ client = anthropic.Anthropic(api_key=os.environ["ANTHROPIC_API_KEY"]) message = client.messages.create( - model="claude-sonnet-4-5-20250929", + model="claude-sonnet-5-5", max_tokens=16000, - thinking={"type": "enabled", "budget_tokens": 10000}, + thinking={"type": "adaptive", "display": "summarized"}, messages=[ { "role": "user", diff --git a/examples/example-ai-anthropic/streaming.py b/examples/example-ai-anthropic/streaming.py index ea8c884b1..7bbe8d082 100644 --- a/examples/example-ai-anthropic/streaming.py +++ b/examples/example-ai-anthropic/streaming.py @@ -31,7 +31,7 @@ client = anthropic.Anthropic(api_key=os.environ["ANTHROPIC_API_KEY"]) stream = client.messages.create( - model="claude-sonnet-4-5-20250929", + model="claude-sonnet-5-5", max_tokens=1024, messages=[{"role": "user", "content": "Write a haiku about observability."}], stream=True,