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
+8-2Lines changed: 8 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -107,16 +107,22 @@ agent = Agent(model)
107
107
108
108
## Provider Argument
109
109
110
-
You can provide a custom `Provider` via the `provider` argument, for example to use a pre-initialized `genai.Client` or to customize authentication:
110
+
You can supply a custom `GoogleProvider` instance using the `provider` argument to configure advanced client options, such as setting a custom `base_url`.
111
+
112
+
This is useful if you're using a custom-compatible endpoint with the Google Generative Language API.
111
113
112
114
```python
113
115
from google import genai
116
+
from google.genai.types import HttpOptions
114
117
115
118
from pydantic_ai import Agent
116
119
from pydantic_ai.models.google import GoogleModel
117
120
from pydantic_ai.providers.google import GoogleProvider
0 commit comments