Skip to content

Fix: resolve union type handling for function call tool parameters in chat completions #1421

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

Closed
wants to merge 1 commit into from

Conversation

Aligadit1
Copy link

This PR addresses the union type error discussed in issue #1416 by properly distinguishing between ChatCompletionMessageFunctionToolCallParam and ChatCompletionMessageCustomToolCallParam when processing function call tool parameters. This fix prevents runtime errors and improves type safety in chat completions.

@seratch
Copy link
Member

seratch commented Aug 11, 2025

Thanks for sending this, but we'll resolve this by #1415

@seratch seratch added the duplicate This issue or pull request already exists label Aug 11, 2025
@seratch seratch closed this Aug 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants