perf: chat framwork

This commit is contained in:
archer
2023-05-03 15:28:25 +08:00
parent 91decc3683
commit 00a99261ae
23 changed files with 811 additions and 1011 deletions

4
src/types/chat.d.ts vendored
View File

@@ -1,5 +1,7 @@
import { ChatRoleEnum } from '@/constants/chat';
export type ChatItemSimpleType = {
obj: 'Human' | 'AI' | 'SYSTEM';
obj: `${ChatRoleEnum}`;
value: string;
systemPrompt?: string;
};