Skip to content

Pydantic and JSON schemas need upgrade #2656

@HamzaYslmn

Description

@HamzaYslmn

Confirm this is a feature request for the Python library and not the underlying OpenAI API.

  • This is a feature request for the Python library

Describe the feature or improvement you're requesting

When JSON schemas become overly complex and nested, pydantic comes to the rescue. It converts them into a more readable structure, but I provide a separate schema for each user in the API. This has made management quite challenging.

I want a step towards simplifying a global JSON struct or its transformations and being able to save it to the database.

Or at least

let us use
Schema.model_json_schema()

Additional context

If I don't know a method, please tell me what you do.

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions