Is your feature request related to a problem? Please describe.
I'm currently using Lingoose with OpenAI, and one of my project requirements involves defining response types using JSON Schema, as described in OpenAI’s structured outputs guide.
At the moment, Lingoose does not seem to support defining JSON Schema for structured outputs.
Describe the solution you'd like
I’d love to see support for JSON Schema added to Lingoose. Specifically, adding a new field to hold the JSON Schema and applying it when the response format type is defined for OpenAI would solve this need.
Describe alternatives you've considered
One workaround I’ve considered is defining the JSON Schema separately and manually converting it to OpenAI’s expected schema format. However, this still introduces a dependency on OpenAI’s schema structure, and adds unnecessary complexity to the library.
Is your feature request related to a problem? Please describe.
I'm currently using Lingoose with OpenAI, and one of my project requirements involves defining response types using JSON Schema, as described in OpenAI’s structured outputs guide.
At the moment, Lingoose does not seem to support defining JSON Schema for structured outputs.
Describe the solution you'd like
I’d love to see support for JSON Schema added to Lingoose. Specifically, adding a new field to hold the JSON Schema and applying it when the response format type is defined for OpenAI would solve this need.
Describe alternatives you've considered
One workaround I’ve considered is defining the JSON Schema separately and manually converting it to OpenAI’s expected schema format. However, this still introduces a dependency on OpenAI’s schema structure, and adds unnecessary complexity to the library.