Skip to content

openai-v2: code should also guard against NotGiven instances #3921

@xrmx

Description

@xrmx

openai client library also defined a NotGiven class to signal the default values of the fields. There are two instances of this class that can be imported NOT_GIVEN and not_given so the check should check both as isinstance(NotGiven).

This needs to be done on the chat completion side but also on the embeddings side.

Metadata

Metadata

Assignees

No one assigned

    Labels

    gen-aiRelated to generative AI

    Type

    No type

    Projects

    Status

    New issues

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions