openai-openapi
openai-openapi copied to clipboard
tool_calls in ChatCompletionRequestAssistantMessage cannot be null?
According to the Typescript library, tool_calls is defined as tool_calls?: Array<ChatCompletionMessageToolCall> and the Python library allows tool_calls to be null - however, this OpenAPI spec defines tool_calls on ChatCompletionRequestAssistantMessage as a ref to ChatCompletionMessageToolCalls which is defined as an array of items who ref to ChatCompletionMessageToolCall
This causes tool_calls: null to fail validation.