Skip to content

Commit dd63c0b

Browse files
authored
Update pydantic_ai_slim/pydantic_ai/models/google.py
1 parent 3c022cc commit dd63c0b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pydantic_ai_slim/pydantic_ai/models/google.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ async def count_tokens(
267267
messages, model_settings, model_request_parameters
268268
)
269269

270-
# Annoyingly, the type of `GenerateContentConfigDict.get` is "partially `Unknown`" because `response_json_schema` includes `typing._UnionGenericAlias`,
270+
# Annoyingly, the type of `GenerateContentConfigDict.get` is "partially `Unknown`" because `response_schema` includes `typing._UnionGenericAlias`,
271271
# so without this we'd need `pyright: ignore[reportUnknownMemberType]` on every line and wouldn't get type checking anyway.
272272
generation_config = cast(dict[str, Any], generation_config)
273273

0 commit comments

Comments
 (0)