Skip to content

armgit / dspy

Public Imported from GitHub
0

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

Python

change the default model to llama-4 for databricks provider (#8414)

Chen Qian7a002385d1b4
diff --git a/docs/docs/index.md b/docs/docs/index.md
index 2631319fb..fac5194b1 100644
--- a/docs/docs/index.md
+++ b/docs/docs/index.md
@@ -49,7 +49,11 @@ Instead of wrangling prompts or training jobs, DSPy (Declarative Self-improving
```python linenums="1"
import dspy
- lm = dspy.LM('databricks/databricks-meta-llama-3-1-70b-instruct')
+ lm = dspy.LM(
+ 'databricks/databricks-llama-4-maverick',
+ api_key="YOUR_DATABRICKS_ACCESS_TOKEN",
+ api_base="YOUR_DATABRICKS_WORKSPACE_URL", # e.g.: https://dbc-64bf4923-e39e.cloud.databricks.com/serving-endpoints
+ )
dspy.configure(lm=lm)
```