Skip to content

armgit / dspy

Public Imported from GitHub
0

DSPy: The framework for programming—not prompting—language models

Python

Update model version from GPT-4 to GPT-5

Omar Khattab475369a42568
diff --git a/docs/docs/index.md b/docs/docs/index.md
index 7469694e4..3ee1afb94 100644
--- a/docs/docs/index.md
+++ b/docs/docs/index.md
@@ -31,7 +31,7 @@ Instead of wrangling prompts or training jobs, DSPy (Declarative Self-improving
```python linenums="1"
import dspy
- lm = dspy.LM("openai/gpt-4o-mini", api_key="YOUR_OPENAI_API_KEY")
+ lm = dspy.LM("openai/gpt-5-mini", api_key="YOUR_OPENAI_API_KEY")
dspy.configure(lm=lm)
```