Team Ai
Apppublic

KBaba7/llama.cpp

sourceHugging Faceapache-2.0updated 2y agoView on Hugging Face
0likes
types.ts26 linesDownload Raw Back to utils
1export interface TimingReport {2  prompt_n: number;3  prompt_ms: number;4  predicted_n: number;5  predicted_ms: number;6}7 8export interface Message {9  id: number;10  role: 'user' | 'assistant' | 'system';11  content: string;12  timings?: TimingReport;13}14 15export type APIMessage = Pick<Message, 'role' | 'content'>;16 17export interface Conversation {18  id: string; // format: `conv-{timestamp}`19  lastModified: number; // timestamp from Date.now()20  messages: Message[];21}22 23export type PendingMessage = Omit<Message, 'content'> & {24  content: string | null;25};26