1 comment

[ 3.2 ms ] story [ 9.9 ms ] thread
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-...