Null values for messages.0.name

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' - 'messages.0.name'

This occurs even when the name property is null

Per the documentation, message.name 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