Null values for

I believe that the OpenAI api mistakenly throws an error when messages.[index].name is null. The error I’ve seen again and again is:

None is not of type 'string' - ''

This occurs even when the name property is null

Per the documentation, is an optional field

It is an optional field, but if included, it must have a string value to pass json schema validation.

1 Like