4 ms·
Pydantic 2.0 just released – An overview of the popular data validation tool
- minimaxir 3y agoThere is a notable difference between Pydantic's JSON Schema output and OpenAI's expected input for function calling: Pydantic outputs an extra `title` field, which although shouldn't impact ChatGPT output, it's annoying. Easiest solution is to just recursively remove the `title` field from Pydantic's output: https://stackoverflow.com/questions/58938576/remove-key-and-its-value-in-nested-dictionary-using-python/58938747#58938747 https://stackoverflow.com/questions/58938576/remove-key-and-...