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/models/google.md
+45Lines changed: 45 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -158,3 +158,48 @@ See the [Gemini API docs](https://ai.google.dev/gemini-api/docs/safety-settings)
158
158
159
159
See [this discussion](https://discuss.ai.google.dev/t/i-am-using-google-generative-ai-model-gemini-1-5-pro-for-image-analysis-but-getting-error/34866/4)
160
160
for more details.
161
+
162
+
## Model settings
163
+
164
+
You can use the [`GoogleModelSettings`][pydantic_ai.models.google.GoogleModelSettings] class to customize the model request.
165
+
166
+
### Disable thinking
167
+
168
+
You can disable thinking by setting the `thinking_budget` to `0` on the `google_thinking_config`:
169
+
170
+
```python
171
+
from pydantic_ai import Agent
172
+
from pydantic_ai.models.google import GoogleModel, GoogleModelSettings
0 commit comments