2 ms·
There is a notable difference between Pydantic's JSON Schema output and OpenAI's expected input for function calling: Pydantic outputs an extra `title` field, w
by minimaxir 3y ago
There 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-...