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 the retired gpt-4 and gpt-4-turbo models in examples and docs (#11393)

alexcastgonz26d0e31c9ea8
diff --git a/docs/api/inputs/chat.md b/docs/api/inputs/chat.md
index dac291155e..13926d2d64 100644
--- a/docs/api/inputs/chat.md
+++ b/docs/api/inputs/chat.md
@@ -75,7 +75,7 @@ import marimo as mo
chat = mo.ui.chat(
mo.ai.llm.openai(
- "gpt-4",
+ "gpt-5.6-sol",
system_message="You are a helpful assistant.",
),
show_configuration_controls=True
diff --git a/examples/ai/chat/dagger_code_interpreter.py b/examples/ai/chat/dagger_code_interpreter.py
index 8c76ac298f..9e8d4a448e 100644
--- a/examples/ai/chat/dagger_code_interpreter.py
+++ b/examples/ai/chat/dagger_code_interpreter.py
@@ -89,7 +89,7 @@ def _(backend, input_key, mo):
if backend.value == "ollama"
else _get_open_ai_client()
)
- model = "llama3.1" if backend.value == "ollama" else "gpt-4-turbo"
+ model = "llama3.1" if backend.value == "ollama" else "gpt-5.6-sol"
return client, model
diff --git a/examples/ai/misc/build_a_superhero.py b/examples/ai/misc/build_a_superhero.py
index 1c21819ab2..398911d12a 100644
--- a/examples/ai/misc/build_a_superhero.py
+++ b/examples/ai/misc/build_a_superhero.py
@@ -51,7 +51,7 @@ def _(content, item, mo, openai, openaikey):
result = None
if item.value:
response = openai.ChatCompletion.create(
- model="gpt-4-turbo",
+ model="gpt-5.6-sol",
messages=[
{
"role": "system",
@@ -92,7 +92,7 @@ def _(mo, openai, superhero):
if superhero.value:
catchphraseResponse = openai.ChatCompletion.create(
- model="gpt-4-turbo",
+ model="gpt-5.6-sol",
messages=[
{"role": "system", "content": "You are a creative assistant."},
{
diff --git a/examples/ai/tools/chat_with_tools.py b/examples/ai/tools/chat_with_tools.py
index 668d12bce1..2c125b6be0 100644
--- a/examples/ai/tools/chat_with_tools.py
+++ b/examples/ai/tools/chat_with_tools.py
@@ -200,7 +200,7 @@ def _(BeautifulSoup, alt, client, dataset_dropdown, df, ell, mo, requests):
return f"Failed to execute code: {code}"
- @ell.simple(model="gpt-4-turbo", client=client)
+ @ell.simple(model="gpt-5.6-sol", client=client)
def rag(content: str, question: str):
"""
Given some content, answer a question about it.
@@ -240,7 +240,7 @@ def _(BeautifulSoup, alt, client, dataset_dropdown, df, ell, mo, requests):
@app.cell
def _(TOOLS, client, df, ell, get_dataset, mo):
@ell.complex(
- model="gpt-4-turbo",
+ model="gpt-5.6-sol",
tools=TOOLS,
client=client,
)
diff --git a/examples/ai/tools/code_interpreter.py b/examples/ai/tools/code_interpreter.py
index e742b5ee5a..fdae4aa2c0 100644
--- a/examples/ai/tools/code_interpreter.py
+++ b/examples/ai/tools/code_interpreter.py
@@ -95,7 +95,7 @@ def _(backend, input_key, mo, os_key):
if backend.value == "ollama"
else _get_open_ai_client()
)
- model = "llama3.1" if backend.value == "ollama" else "gpt-4-turbo"
+ model = "llama3.1" if backend.value == "ollama" else "gpt-5.6-sol"
return (model,)
diff --git a/examples/ai/tools/dataset_analysis.py b/examples/ai/tools/dataset_analysis.py
index c3ec502c45..167bd50a56 100644
--- a/examples/ai/tools/dataset_analysis.py
+++ b/examples/ai/tools/dataset_analysis.py
@@ -108,7 +108,7 @@ def _(alt, cars, client, ell, schema):
@ell.complex(
- model="gpt-4-turbo", tools=[get_chart, get_filtered_table], client=client
+ model="gpt-5.6-sol", tools=[get_chart, get_filtered_table], client=client
)
def analyze_dataset(prompt: str) -> str:
"""You are an agent that can analayze the a dataset"""
diff --git a/frontend/src/components/app-config/ai-config.tsx b/frontend/src/components/app-config/ai-config.tsx
index b208ffc81a..56240a1bc5 100644
--- a/frontend/src/components/app-config/ai-config.tsx
+++ b/frontend/src/components/app-config/ai-config.tsx
@@ -1850,7 +1850,7 @@ export const AddModelForm: React.FC<{
id={modelNameInputId}
value={modelName}
onChange={(e) => setModelName(e.target.value)}
- placeholder="gpt-4"
+ placeholder="gpt-5.6-sol"
className="text-xs mb-0"
/>
</div>