You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/providers/gemini.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -21,7 +21,7 @@ $response = Prism::text()
21
21
->withPrompt('What is the stock price of Google right now?')
22
22
// Enable search grounding
23
23
->withProviderTools(['google_search'])
24
-
->generate();
24
+
->asText();
25
25
```
26
26
27
27
If you use search groundings, Google require you meet certain [display requirements](https://ai.google.dev/gemini-api/docs/grounding/search-suggestions).
@@ -137,7 +137,7 @@ $response = Prism::text()
137
137
->withPrompt('Explain the concept of Occam\'s Razor and provide a simple, everyday example.')
138
138
// Set thinking budget
139
139
->withProviderOptions(['thinkingBudget' => 300])
140
-
->generate();
140
+
->asText();
141
141
```
142
142
> [!NOTE]
143
143
> Do not specify a `thinkingBudget` on 2.0 or prior series Gemini models as your request will fail.
0 commit comments