Spaces:
Runtime error
Runtime error
File size: 455 Bytes
13095e0 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 |
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;
temperature: number;
}
export interface Conversation {
id: string;
name: string;
messages: Message[];
model: OpenAIModel;
prompt: string;
temperature: number;
folderId: string | null;
}
|