This commit is contained in:
Mckay Wrigley
2023-03-27 09:38:56 -06:00
committed by GitHub
parent 2269403806
commit 34c79c0d66
51 changed files with 1744 additions and 295 deletions
+24
View File
@@ -0,0 +1,24 @@
import { OpenAIModel } from './openai';
export interface Message {
role: Role;
content: string;
}
export type Role = 'assistant' | 'user';
export interface ChatBody {
model: OpenAIModel;
messages: Message[];
key: string;
prompt: string;
}
export interface Conversation {
id: string;
name: string;
messages: Message[];
model: OpenAIModel;
prompt: string;
folderId: string | null;
}