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

Property 'tool_calls' Does Not Exist on Specified Types #158

Open
dadmor opened this issue Jan 5, 2025 · 1 comment
Open

Property 'tool_calls' Does Not Exist on Specified Types #158

dadmor opened this issue Jan 5, 2025 · 1 comment

Comments

@dadmor
Copy link

dadmor commented Jan 5, 2025

Tool_calls is not a property of either ChatCompletionMessageParam or ChatCompletionToolMessageParam, causing a TypeScript compilation error.

A workaround is to cast the type explicitly using ... as ParsedChatCompletionMessage<any>

@dadmor
Copy link
Author

dadmor commented Jan 6, 2025

image
unfortunately the problem returned during the application build

Another way:

image

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