NerualNowtork
Re:Show HN: Convert Any Pydantic Model to OpenAI JSON Schema
on Monday April 07, 2025 @01:04PM (#43613607)
Good point!
Yes, if we're talking about coding, luckily we don't need to deal with JSON schema in most cases. But there are places like OpenAI's playground and low-code platforms that don't support Pydantic model definition. I also doubt they will ever add Pydantic support because of the nature of such products.
Besides, I feel we need some automatic prompt engineering for structured output, then it'll probably be better done on JSON schema than on JS/Python code because you can use JSON as part of the prompt. But maybe I'm betting wrong on the future!