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

Unable to catch streaming tool error #2363

Open
wststone opened this issue Jul 22, 2024 · 0 comments
Open

Unable to catch streaming tool error #2363

wststone opened this issue Jul 22, 2024 · 0 comments
Labels
ai/ui bug Something isn't working

Comments

@wststone
Copy link

wststone commented Jul 22, 2024

Description

Currently if there is a zod schema validate error or a toolcall response error (such as generating a sensitive image using dalle), using streamText 's with experimental_toolCallStreaming option enabled, the error will be streamed as content, however there are no errors thrown, either from the server's side or the useChat's (react) return of error value.
image

Code example

No response

Additional context

Here is the ai-sdk packages version
"@ai-sdk/openai": "^0.0.37",
"@ai-sdk/react": "^0.0.25",
"@ai-sdk/ui-utils": "^0.0.16",

@lgrammel lgrammel added bug Something isn't working ai/ui labels Jul 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ai/ui bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants