starchat-ui / types /chat.ts
matthoffner's picture
Duplicate from matthoffner/chatbot
13095e0
raw
history blame contribute delete
455 Bytes
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;
}