-
Notifications
You must be signed in to change notification settings - Fork 54
feat: support Vercel AI SDK 5 Beta #189
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 66 commits
Commits
Show all changes
141 commits
Select commit
Hold shift + click to select a range
29f7814
feat: support vercel ai sdk 5 beta
thucpn 6f5b3b0
update chat interface
thucpn 6d92fa5
regenerate & sendMessage
thucpn 9c0419b
update chat interface
thucpn 901f04a
update comment
thucpn 3acd4df
update chat context
thucpn 754ec86
keep `reload`, `append` and `isLoading` for backward compatibility
thucpn 2e91a37
update components
thucpn b2fea79
keep markdown work
thucpn 77991fd
update example
thucpn cd3c6e2
chore: message parts
thucpn 743fa92
fix format
thucpn 6d69946
update example
thucpn 459ee92
bump ai 5.0.0 in examples
thucpn 842e88d
update route handler for chat
thucpn b0bac0c
update interface
thucpn 5edcae3
fix imports
thucpn 7363cc9
transform data parts to annotations
thucpn 6ac941a
update chat advanced example
thucpn e0e7481
update edge example
thucpn b15eb10
update rsc example
thucpn 886c586
bump vercel 5 in app web
thucpn 4619a55
update all app/web demo
thucpn 26c8d62
use @ai-sdk/llamaindex adapter
thucpn 016d8f3
use own adapter
thucpn b19fd92
annotations -> parts, introduce usePart()
thucpn 5e49686
introduce usePart and useAllParts
thucpn e4e272e
able to custom part position if needed
thucpn 618916d
remove inline annotations
thucpn b51ebd9
group before render
thucpn ff0a281
enhance group parts
thucpn 75f87f7
update chat message content
thucpn 4c5a29b
useCurrentPart
thucpn 32fa1dd
fix: usePartData
thucpn cce7a2b
remove comments
thucpn 8233fd1
fix: source part and update examples
thucpn dc3739c
refactor: extract all artifact data
thucpn dee2320
refactor: suggested questions
thucpn a020e27
update comment
thucpn b927d6a
depreacated ChatEvents and AgentEvent
thucpn 16c4a29
image & document_file -> file
thucpn ad740ce
update comments
thucpn 7419ccc
remove reload & append
thucpn 17792d4
suggestion
thucpn 9450d68
simplify file
thucpn d8936da
enhance chat file
thucpn 87f2cfb
create alias Part with available built-in parts
thucpn c9ff760
remove log
thucpn 227c37f
update example
thucpn 414c204
ChatMessage.Part.Artifact
thucpn 740791f
issue when saving artiact
thucpn ccdf281
fix circular import
thucpn c96b35b
update edge example and advanced example
thucpn 98e18a1
update example
thucpn bcea59c
ensure rsc working well
thucpn 59e1c27
fix types in demo
thucpn f3f30b7
update registry
thucpn 04c9046
update useChatWorkflow
thucpn ef37fc6
fix format
thucpn 19708c9
generate drafts document
thucpn 8749ac0
update example
thucpn 2b9c57b
fix doc
thucpn ae96ca4
update doc to explain data-
thucpn 8deeb99
add example for id behavior
thucpn 5aa1f64
update demo artifact example
thucpn e1f6353
update useFile
thucpn 8bb56fa
able to custom render data in chat event
thucpn 9da31c7
support AnyPart
thucpn 2927f19
rename attachments
thucpn 98212a7
rename: getAttachments
thucpn f165668
lint
thucpn 097c587
bump chat-ui and vercel v5 in server
thucpn 4c5a926
update dynamic comps
thucpn aa242d4
update chat handler
thucpn 9c7b729
fix imports
thucpn c6b49cc
file handle
thucpn 533b2b0
ServerMessage adapter
thucpn 6bdc1ee
support FilePart
thucpn 772ebad
fix imports
thucpn b48a1fa
update file interface
thucpn 86f03d8
update server message
thucpn 5fc83eb
fix upload file example
thucpn 165d5db
refactor: sending events in backend
thucpn 69a5c08
missing optional id to merge data parts
thucpn b01e029
new streaming logic
thucpn 8a3524d
update doc
thucpn 48a5449
simplify workflow stream with sse
thucpn b2aba81
AgentWorkflowAdapter + LlamaIndexServerAdapter
thucpn 10580f2
remove dead code
thucpn 3286d47
refactor: stream pipe through
thucpn b7d7950
fix callback
thucpn e646e18
fix imports
thucpn 67912e1
fix: remove dead imports
thucpn c44881b
fix stream end
thucpn a73c4c5
fix suggestion content
thucpn 2deecf1
fix stream header
thucpn c1cea88
update route.ts for eject mode
thucpn 3c187fd
fix export utils
thucpn ae80725
filter out invalid UI events
thucpn d3ba228
fix: dynamic events
thucpn 5ca67a7
update llamaindex server examples
thucpn b246e0f
fix: format
thucpn e2a160d
fix: prettier
thucpn abf8d91
update pnpm workspace
thucpn 0dbdf9b
fix lint
thucpn 4c53b49
update frontend for fastapi example
thucpn e68764b
fix lint
thucpn 10dc142
fix cycle import
thucpn 78bc7ae
fix format
thucpn f01fa0c
fix typing issue in example
thucpn 6e00444
update backend for fastapi example
thucpn ea63358
update header for eject mode
thucpn 641dc06
fix unit test
thucpn e15accf
fix imports
thucpn 0a7a283
fix: issue when update constants file
thucpn 134ec59
update document
thucpn 1537efc
update entire document
thucpn 3bfa014
fix format
thucpn b710c70
add changeset
thucpn 4412e1a
fix typo
thucpn 26d104b
remove @ai-sdk/llamaindex
thucpn 1d874d2
update lock
thucpn 7bed093
fix document typo
thucpn cdd2efa
update doc for transport
thucpn 09f1825
mergeAdjacentTextParts in useChatWorkflow
thucpn 277603c
getTextMessageContent from all parts
thucpn 81577a3
update type for getAttachments
thucpn 1bf41a6
fix code review
thucpn 9dd837b
prefer type
thucpn 1288fe5
fix lint
thucpn ad22615
fix lint
thucpn 2d125c2
fix imports
thucpn 3081109
move SSEStreamResponse to vercel.py
thucpn ea57086
getText
thucpn ea4dccd
update document
thucpn eb4e81f
fix loading status
thucpn ae53ecf
toServerMessage
thucpn f81d049
update server document
thucpn b677d23
fix: is file part
thucpn 4172112
fix format
thucpn 7ac96ac
bump ai version for server eject
thucpn 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
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.