Skip to content

Commit 2b7899b

Browse files
authored
docs: remove note about using GeminiModel instead of GoogleModel (#2184)
1 parent 484022f commit 2b7899b

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

docs/models/google.md

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,6 @@ pip/uv-add "pydantic-ai-slim[google]"
1313

1414
---
1515

16-
!!! warning "Explicit instantiation required"
17-
You **cannot** currently use `Agent('google-gla:gemini-1.5-flash')` or `Agent('google-vertex:gemini-1.5-flash')` directly with `GoogleModel`. The model name inference will select [`GeminiModel`](../models/gemini.md) instead of `GoogleModel`.
18-
19-
To use `GoogleModel`, you **must** explicitly instantiate a [`GoogleProvider`][pydantic_ai.providers.google.GoogleProvider] and pass it to
20-
[`GoogleModel`][pydantic_ai.models.google.GoogleModel], then pass the model to [`Agent`][pydantic_ai.Agent].
21-
22-
---
23-
2416
## Configuration
2517

2618
`GoogleModel` lets you use Google's Gemini models through their [Generative Language API](https://ai.google.dev/api/all-methods) (`generativelanguage.googleapis.com`) or [Vertex AI API](https://cloud.google.com/vertex-ai/generative-ai/docs/learn/models) (`*-aiplatform.googleapis.com`).

0 commit comments

Comments
 (0)