-
Notifications
You must be signed in to change notification settings - Fork 11
Fix assistant UI updates #110
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
Merged
Merged
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
cfa26a4
commit 1
urjitc 14330e6
fix: types and update ai asdk
urjitc c51c661
fix: package.json
urjitc 0b6aeb2
Potential fix for pull request finding 'Unused variable, import, func…
urjitc 7d41184
Update package.json
urjitc a7f2c10
fix: issues
urjitc File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
102 changes: 0 additions & 102 deletions
102
src/components/assistant-ui/SafeAssistantRuntimeProvider.tsx
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🧩 Analysis chain
🌐 Web query:
Vercel AI SDK v6 migration guide breaking changes💡 Result:
Key breaking / migration-impact changes when upgrading Vercel AI SDK v5 → v6:
ai→^6.0.0,@ai-sdk/provider→^3.0.0,@ai-sdk/provider-utils→^4.0.0,@ai-sdk/*→^3.0.0. Run codemods vianpx@ai-sdk/codemodv6. [1]Experimental_Agentreplaced byToolLoopAgent;systemrenamed toinstructions; defaultstopWhenchanged tostepCountIs(20). [1]CoreMessageremoved;convertToCoreMessages→convertToModelMessages(andconvertToModelMessagesis now async, so you’ll likely needawait). [1]Tool.toModelOutputnow receives an object parameter:({ output }) => ...(instead ofoutput => ...). [1]ToolCallOptionsrenamed toToolExecutionOptions(old name deprecated). [1]strict: trueon each tool (instead of relying on provider-level strictness applying to all tools). [1]ToolCallRepairFunction’ssystemparam can now bestring | SystemModelMessage | undefined. [1]generateObjectandstreamObjectare deprecated; usegenerateText/streamTextwith anoutputsetting instead. [1]textEmbeddingModel→embeddingModelandtextEmbedding→embedding; generics removed fromEmbeddingModel,embed,embedMany. [1]AI_SDK_LOG_WARNINGS=false). [1]Warningtype. [1]unknownremoved; now returned asother. [1]isToolUIPart→isStaticToolUIPart, etc.). [1]Provider-specific breaking changes called out in the guide:
strictJsonSchemais now enabled by default;structuredOutputsoption removed from chat models (usestrictJsonSchema). [1]azure()now uses the Responses API by default (azure.chat()for Chat Completions); Responses API metadata/options key changes fromopenai→azure(withopenaistill accepted for input options). [1]structuredOutputModeto control native structured outputs behavior for supported Claude models. [1]providerOptions/providerMetadatakey changes fromgoogle→vertex(output metadata usesvertex). [1]If you want, paste a snippet of your v5 usage (agents/tools/providers/UI) and I’ll point out exactly which of the above apply.
References: AI SDK 6 migration guide and change list. [1]
Sources
[1] (ai-sdk.dev)
Citations:
Major version bump for
aipackage—significant breaking changes require review.Upgrading from v5 to v6 introduces multiple breaking changes across core APIs:
generateObjectandstreamObjectare deprecated; migrate togenerateText/streamTextwithoutputsettingTool.toModelOutputnow receives({ output }) => ...instead ofoutput => ...;ToolCallOptionsrenamed toToolExecutionOptionsCoreMessageremoved;convertToCoreMessages→convertToModelMessages(now async)Experimental_Agentreplaced byToolLoopAgent;systemrenamed toinstructionsstrictJsonSchemanow default-enabled; Azure, Anthropic, Google Vertex options renamed)Review your codebase usage against the migration guide and run
npx@ai-sdk/codemodv6for automated fixes.🤖 Prompt for AI Agents