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.