Skip to content

Commit f143029

Browse files
committed
Updated pull request based on feedbacks
1 parent 1244bfd commit f143029

File tree

1 file changed

+1
-3
lines changed
  • pydantic_ai_slim/pydantic_ai/profiles

1 file changed

+1
-3
lines changed

pydantic_ai_slim/pydantic_ai/profiles/google.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
from pydantic_ai.exceptions import UserError
66

7-
from .._json_schema import JsonSchema, JsonSchemaTransformer, flatten_allof
7+
from .._json_schema import JsonSchema, JsonSchemaTransformer
88
from . import ModelProfile
99

1010

@@ -35,8 +35,6 @@ def __init__(self, schema: JsonSchema, *, strict: bool | None = None):
3535
super().__init__(schema, strict=strict, prefer_inlined_defs=True, simplify_nullable_unions=True)
3636

3737
def transform(self, schema: JsonSchema) -> JsonSchema:
38-
# Flatten object-only allOf to improve compatibility
39-
schema = flatten_allof(schema)
4038
# Note: we need to remove `additionalProperties: False` since it is currently mishandled by Gemini
4139
additional_properties = schema.pop(
4240
'additionalProperties', None

0 commit comments

Comments
 (0)