Skip to content

A reactive notebook for Python — run reproducible experiments, query with SQL, execute as a script, deploy as an app, and version with git. Stored as pure Python. All in a modern, AI-native editor.

docs: replace more retired Claude and Gemini models in docs and examples (#11396)

alexcastgonz3794305991ac
diff --git a/docs/api/inputs/chat.md b/docs/api/inputs/chat.md
index 13926d2d64..8be777a5e5 100644
--- a/docs/api/inputs/chat.md
+++ b/docs/api/inputs/chat.md
@@ -288,7 +288,7 @@ import marimo as mo
mo.ui.chat(
mo.ai.llm.anthropic(
- "claude-3-5-sonnet-20240620",
+ "claude-sonnet-5-5",
system_message="You are a helpful assistant.",
api_key="sk-ant-...",
),
@@ -305,7 +305,7 @@ import marimo as mo
mo.ui.chat(
mo.ai.llm.google(
- "gemini-1.5-pro-latest",
+ "gemini-3.8-flash",
system_message="You are a helpful assistant.",
api_key="AI..",
),
diff --git a/docs/guides/configuration/llm_providers.md b/docs/guides/configuration/llm_providers.md
index ede5000fea..a051ec5184 100644
--- a/docs/guides/configuration/llm_providers.md
+++ b/docs/guides/configuration/llm_providers.md
@@ -26,7 +26,7 @@ Models are written as `provider/model`, and the provider prefix routes to the ma
```toml title="marimo.toml"
[ai.models]
chat_model = "openai/gpt-4o-mini" # Routes to OpenAI config
-edit_model = "anthropic/claude-3-sonnet" # Routes to Anthropic config
+edit_model = "anthropic/claude-sonnet-5-5" # Routes to Anthropic config
autocomplete_model = "ollama/codellama" # Routes to Ollama config
autocomplete_model = "some_other_provider/some_model" # Routes to OpenAI compatible config
```
@@ -163,7 +163,7 @@ api_key = "sk-proj-..."
```toml title="marimo.toml"
[ai.models]
-chat_model = "anthropic/claude-3-7-sonnet-latest" # other options: claude-3-haiku, claude-3-opus
+chat_model = "anthropic/claude-sonnet-5-5" # other options: claude-haiku-5-5, claude-opus-5-5
# See Anthropic model list: https://docs.anthropic.com/en/docs/about-claude/models
[ai.anthropic]
@@ -184,7 +184,7 @@ AWS Bedrock exposes multiple foundation models via a unified AWS API.
```toml title="marimo.toml"
[ai.models]
-chat_model = "bedrock/anthropic.claude-3-sonnet-latest"
+chat_model = "bedrock/global.anthropic.claude-sonnet-5"
# Example model families include Anthropic Claude, Meta Llama, Cohere Command
[ai.bedrock]
@@ -213,7 +213,7 @@ You can use Google AI via two backends: **Google AI Studio** (API key) or **Goog
```toml title="marimo.toml"
[ai.models]
-chat_model = "google/gemini-2.5-pro"
+chat_model = "google/gemini-3.8-flash"
# or any model from https://ai.google.dev/gemini-api/docs/models/gemini
[ai.google]
diff --git a/examples/ai/chat/anthropic_example.py b/examples/ai/chat/anthropic_example.py
index 6a850c9a46..8e6875cfe1 100644
--- a/examples/ai/chat/anthropic_example.py
+++ b/examples/ai/chat/anthropic_example.py
@@ -54,7 +54,7 @@ def _(input_key, mo, os_key):
def _(key, mo):
chatbot = mo.ui.chat(
mo.ai.llm.anthropic(
- "claude-sonnet-4-5",
+ "claude-sonnet-5-5",
system_message="You are a helpful assistant.",
api_key=key,
),
diff --git a/examples/ai/chat/gemini.py b/examples/ai/chat/gemini.py
index cae8bd417d..cef9c92e94 100644
--- a/examples/ai/chat/gemini.py
+++ b/examples/ai/chat/gemini.py
@@ -54,7 +54,7 @@ def _(input_key, mo, os_key):
def _(key, mo):
chatbot = mo.ui.chat(
mo.ai.llm.google(
- "gemini-2.5-flash",
+ "gemini-3.8-flash",
system_message="You are a helpful assistant.",
api_key=key,
),
diff --git a/examples/ai/chat/pydantic-ai-chat.py b/examples/ai/chat/pydantic-ai-chat.py
index 843923c829..de2c373d57 100644
--- a/examples/ai/chat/pydantic-ai-chat.py
+++ b/examples/ai/chat/pydantic-ai-chat.py
@@ -62,12 +62,12 @@ def _():
models = mo.ui.dropdown(
options={
- "Gemini 2.5 Flash": "gemini-2.5-flash",
+ "Gemini 3.8 Flash": "gemini-3.8-flash",
"Claude Haiku 4.5": "claude-haiku-4-5",
"GPT 5 Nano": "gpt-5-nano",
"GPT 5 (multimodal)": "gpt-5",
},
- value="Gemini 2.5 Flash",
+ value="Gemini 3.8 Flash",
label="Choose a model",
)