Skip to main content

API: Support Subschemas & Definitions with $defs & $ref

Per the OpenAI docs:

https://platform.openai.com/docs/guides/structured-outputs/supported-schemas


The new standard supports Structured model outputs by defining object schemas using Pydantic & Zod models.  Enabling this in Venice.ai is essential for the creation of private GraphRAG systems.  

Please click the link above and read on:
“Definitions are supported

You can use definitions to define subschemas which are referenced throughout your schema.”

Currently it appears the Structured Responses provided by Venice

Requires flattened schemas with strict: true


This effectively kills Venice from being an llm provider in our application.

1 comment

Log in to comment and vote

Comments1

  • Blush Frog

    •

    Sep 9, 2025

    Additional context:
    1. Support OpenAI's exact response format
    2. Handle Pydantic schemas with `$defs` and `$ref`
    3. Match OpenAI's message object expectations