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

useChat maxSteps is broken from [email protected] onwards #4691

Closed
stephenkalnoske-sans opened this issue Feb 4, 2025 · 3 comments
Closed
Assignees
Labels
ai/ui bug Something isn't working

Comments

@stephenkalnoske-sans
Copy link

Description

Upgraded my dependencies this morning from [email protected] to latest and maxSteps did not re-call from the client side after a tool call anymore. Narrowed it down to breaking between 4.1.11 and 4.1.12.

Code example

No response

AI provider

[email protected]

Additional context

No response

@stephenkalnoske-sans stephenkalnoske-sans added the bug Something isn't working label Feb 4, 2025
@lgrammel
Copy link
Collaborator

lgrammel commented Feb 5, 2025

With [email protected] and @ai-sdk/[email protected] I have reworked the resubmit mechanism. Please check if those new versions work for you (and also consider using message parts). Details can be found here: #4670

@lgrammel lgrammel added the ai/ui label Feb 5, 2025
@lgrammel lgrammel self-assigned this Feb 5, 2025
@stephenkalnoske-sans
Copy link
Author

Thanks! Just tested it out and while it's not completely backwards compatible (assistant content and tool call visuals are showing up differently), I see what you're doing in parts and it makes perfect sense. I'll keep the old package for now and then migrate to parts when some bandwidth frees up.

I imagine the useChat documentation and all will be updated with parts too?

@lgrammel
Copy link
Collaborator

lgrammel commented Feb 5, 2025

@stephenkalnoske-sans thanks! yes we have started updating the docs, see https://sdk.vercel.ai/docs/ai-sdk-ui/chatbot-tool-usage

@lgrammel lgrammel closed this as completed Feb 5, 2025
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