openai-openapi icon indicating copy to clipboard operation
openai-openapi copied to clipboard

tool_calls in ChatCompletionRequestAssistantMessage cannot be null?

Open nullfox opened this issue 1 year ago • 0 comments

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.

nullfox avatar Oct 10 '24 17:10 nullfox