-
Notifications
You must be signed in to change notification settings - Fork 10
Open
Description
The example repository (see here
| await upsertMessage({ chatId, id: message.id, message }); |
My assumption is that in the example repository, you could rewrite the submitted message ID to your own ID, but then your frontend would be out of sync -- I assume that's fine though. What doesn't make sense is, if you generate the ID for the user ID and send it back as per the doc (
ai-sdk-persistence-db/app/api/chat/route.ts
Lines 34 to 40 in 1c2f43d
| writer.write({ | |
| type: "start", | |
| messageId: generateId(), | |
| }); | |
| writer.write({ | |
| type: "start-step", | |
| }); |
Please advise @nicoalbanese
Metadata
Metadata
Assignees
Labels
No labels