Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
These fields are required. Content is allowed to be empty. This behavior can be observed by trying to include a FunctionCall Message (see also rakyll#25) which has no Content. The API will reject it. The OpenAPI specification for this type (https://github.com/openai/openai-openapi/blob/e6277eabbbb5df1e90620e3657bb02da28dce460/openapi.yaml#L2195-L2197) shows the following: ```yaml ChatCompletionRequestMessage: properties: ... content: type: string nullable: true description: The contents of the message. `content` is required for all messages, and may be null for assistant messages with function calls. ... required: - role - content ``` I've confirmed experimentally it accepts empty strings as well.
- Loading branch information