Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tool_calls in ChatCompletionRequestAssistantMessage cannot be null? #348

Open
nullfox opened this issue Oct 10, 2024 · 0 comments
Open

tool_calls in ChatCompletionRequestAssistantMessage cannot be null? #348

nullfox opened this issue Oct 10, 2024 · 0 comments

Comments

@nullfox
Copy link

nullfox commented Oct 10, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant