Skip to content

Commit f22c28a

Browse files
wchcpsievert
andauthored
Update examples to claude-3-5-sonnet-20241022 (#1746)
Co-authored-by: Carson Sievert <[email protected]>
1 parent 1808303 commit f22c28a

File tree

4 files changed

+5
-5
lines changed
  • examples/chat/playground
  • shiny/templates/chat
    • enterprise/aws-bedrock-anthropic
    • hello-providers/anthropic
    • production/anthropic

4 files changed

+5
-5
lines changed

examples/chat/playground/app.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@
1515
models = {
1616
"openai": ["gpt-4o", "gpt-3.5-turbo"],
1717
"claude": [
18-
"claude-3-opus-20240229",
19-
"claude-3-5-sonnet-20240620",
18+
"claude-3-opus-latest",
19+
"claude-3-5-sonnet-latest",
2020
"claude-3-haiku-20240307",
2121
],
2222
"google": ["gemini-1.5-pro-latest"],

shiny/templates/chat/enterprise/aws-bedrock-anthropic/app.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ async def _():
3939
messages = chat.messages(format="anthropic")
4040
# Create a response message stream
4141
response = llm.messages.create(
42-
model="anthropic.claude-3-sonnet-20240229-v1:0",
42+
model="anthropic.claude-3-5-sonnet-20241022-v2:0",
4343
messages=messages,
4444
stream=True,
4545
max_tokens=1000,

shiny/templates/chat/hello-providers/anthropic/app.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ async def _():
3535
messages = chat.messages(format="anthropic")
3636
# Create a response message stream
3737
response = await llm.messages.create(
38-
model="claude-3-5-sonnet-20240620",
38+
model="claude-3-5-sonnet-latest",
3939
messages=messages,
4040
stream=True,
4141
max_tokens=1000,

shiny/templates/chat/production/anthropic/app.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424

2525

2626
MODEL_INFO = {
27-
"name": "claude-3-5-sonnet-20240620",
27+
"name": "claude-3-5-sonnet-20241022",
2828
# DISCLAIMER: Anthropic has not yet released a public tokenizer for Claude models,
2929
# so this uses the generic default provided by Chat() (for now). That is probably
3030
# ok though since the default tokenizer likely overestimates the token count.

0 commit comments

Comments
 (0)