instructor_ex
instructor_ex copied to clipboard
OpenAI Adapter Structured Outputs
Context
OpenAI blog post introduces the "Structured Outputs" feature to their API.
This Structured Output feature expands the JSON model by guaranteeing that the JSON output will conform to a provided JSON Schema.
Change
Pass the instructor generated JSON Schema into the OpenAI request as "Structured Output" "json_schema" in the requested "response_format", in addition to "messages"?
Consequences
Experimentation and Discussion TBD? Relevance TBD?