wip: 聊天 UI

This commit is contained in:
2024-03-27 18:06:02 +08:00
parent ef1ef50fd5
commit 1ee6ada6af
5 changed files with 251 additions and 28 deletions

View File

@@ -6,6 +6,7 @@ export interface ChatSession {
subject: string
create_at: number
messages: ChatMessage[]
last_input?: string
}
export type MessageRole = 'user' | 'assistant' | 'system'