2
0

⬆️ Upgrade AI SDK (#1641)

This commit is contained in:
Baptiste Arnaud
2024-07-15 14:32:42 +02:00
committed by GitHub
parent a4fb8b6d10
commit 043f0054b0
60 changed files with 2183 additions and 1683 deletions

12
packages/ai/types.ts Normal file
View File

@@ -0,0 +1,12 @@
export type DialogueMessage = {
role: 'Dialogue'
startsBy?: 'user' | 'assistant'
dialogueVariableId?: string
}
export type StandardMessage = {
role: 'user' | 'assistant' | 'system'
content?: string
}
export type Message = DialogueMessage | StandardMessage