feat: implement stores and basic chat logic

This commit is contained in:
steven
2023-03-16 17:01:38 +08:00
parent 5ae9a91dcd
commit 5ff430fe34
23 changed files with 372 additions and 18 deletions

13
types/user.ts Normal file
View File

@ -0,0 +1,13 @@
export enum UserRole {
System = "system",
User = "user",
Assistant = "assistant",
}
export interface User {
id: string;
name: string;
description: string;
avatar: string;
role: UserRole;
}