Skip to content

Commit 7426544

Browse files
committed
Use -latest suffix
1 parent b1019b9 commit 7426544

File tree

3 files changed

+4
-4
lines changed
  • examples/chat/playground
  • shiny/templates/chat

3 files changed

+4
-4
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/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-20241022",
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-20241022",
27+
"name": "claude-3-5-sonnet-latest",
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)