ollama / types /chat.ts
rippanteq7's picture
Upload folder using huggingface_hub
bbef364 verified
raw
history blame contribute delete
448 Bytes
import { OllamaModel } from './ollama';
export interface Message {
role: Role;
content: string;
}
export type Role = 'assistant' | 'user';
export interface ChatBody {
model: string;
system: string;
prompt: string;
options?:
{ temperature: number }
}
export interface Conversation {
id: string;
name: string;
messages: Message[];
model: OllamaModel;
prompt: string;
temperature: number;
folderId: string | null;
}