What are the difference between validators in v2.5 of pydantic and v1 of pydantic?
Private research annotation
Sign in to add a private research label or note.
- User
What are the difference between validators in v2.5 of pydantic and v1 of pydantic?
Assistant
The main differences between validators in pydantic v2.5 and v1 are:
-
New parameter: In v2.5, validators now have a parameter that controls whether the validator is always run, even if the field is not present in the data. This allows you to define validators that are always run, regardless of whether the field is present or not.
-
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.