feat: assistant templates startup

This commit is contained in:
2024-04-08 16:10:48 +08:00
parent 73dd6a21a7
commit 5442381e40
5 changed files with 290 additions and 108 deletions

View File

@@ -76,6 +76,7 @@ export interface ChatSession {
create_at: number
messages: ChatMessage[]
last_input?: string
assistant?: Assistant
}
export type MessageRole = 'user' | 'assistant' | 'system'
@@ -84,6 +85,7 @@ export interface ChatMessage {
id: ChatMessageId
role: MessageRole
content: string
preset?: boolean
create_at?: number
interrupted?: boolean
}