We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 44ffb3e commit 37feb1dCopy full SHA for 37feb1d
docs/docs/learn/programming/language_models.md
@@ -23,6 +23,15 @@ dspy.configure(lm=lm)
23
dspy.configure(lm=lm)
24
```
25
26
+ === "Gemini (AI Studio)"
27
+ You can authenticate by setting the GEMINI_API_KEY env variable or passing `api_key` below.
28
+
29
+ ```python linenums="1"
30
+ import dspy
31
+ lm = dspy.LM('gemini/gemini-2.5-pro-preview-03-25', api_key='GEMINI_API_KEY')
32
+ dspy.configure(lm=lm)
33
+ ```
34
35
=== "Anthropic"
36
You can authenticate by setting the ANTHROPIC_API_KEY env variable or passing `api_key` below.
37
0 commit comments