Skip to content

Commit 9733f32

Browse files
authored
Fix max length handling (#1510)
1 parent 9d54821 commit 9733f32

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pydantic_ai_slim/pydantic_ai/models/openai.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -957,7 +957,7 @@ def transform(self, schema: JsonSchema) -> JsonSchema:
957957
# Remove incompatible keys, but note their impact in the description provided to the LLM
958958
description = schema.get('description')
959959
min_length = schema.pop('minLength', None)
960-
max_length = schema.pop('minLength', None)
960+
max_length = schema.pop('maxLength', None)
961961
if description is not None:
962962
notes = list[str]()
963963
if min_length is not None: # pragma: no cover

0 commit comments

Comments
 (0)