Skip to content

Commit 3990d5c

Browse files
committed
Updated code after first TR
1 parent bcf7bfd commit 3990d5c

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

how-to-use-claude-api-in-python/basic_claude_call.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
client = anthropic.Anthropic()
44

55
response = client.messages.create(
6-
model="claude-sonnet-4-5",
6+
model="claude-sonnet-4-6",
77
max_tokens=1024,
88
messages=[
99
{"role": "user", "content": "What is the Zen of Python?"}

how-to-use-claude-api-in-python/coding_assistant.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
user_input = input("Ask me anything about Python: ")
1212

1313
response = client.messages.create(
14-
model="claude-sonnet-4-5",
14+
model="claude-sonnet-4-6",
1515
max_tokens=1024,
1616
system=system_prompt,
1717
messages=[

how-to-use-claude-api-in-python/structured_output_1.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
client = anthropic.Anthropic()
55

66
response = client.messages.create(
7-
model="claude-sonnet-4-5",
7+
model="claude-sonnet-4-6",
88
max_tokens=1024,
99
system="You are a Python coding assistant.",
1010
messages=[

how-to-use-claude-api-in-python/structured_output_2.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ class FunctionDescription(BaseModel):
1111
client = anthropic.Anthropic()
1212

1313
response = client.messages.parse(
14-
model="claude-sonnet-4-5",
14+
model="claude-sonnet-4-6",
1515
max_tokens=1024,
1616
system="You are a Python coding assistant.",
1717
messages=[

0 commit comments

Comments
 (0)