Use core messages spec (#337)

This commit is contained in:
Jeremy 2024-05-15 09:39:16 -04:00 committed by GitHub
parent 095550d4dc
commit 901e4ccec1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 231 additions and 107 deletions

View file

@ -1,4 +1,8 @@
import { Message } from 'ai'
import { CoreMessage } from 'ai'
export type Message = CoreMessage & {
id: string
}
export interface Chat extends Record<string, any> {
id: string