chat-ui / src /lib /types /Conversation.ts
coyotte508's picture
coyotte508 HF staff
🗃️ Store model inside conversation instead (#165)
06e879d unverified
raw
history blame
No virus
368 Bytes
import type { ObjectId } from "mongodb";
import type { Message } from "./Message";
import type { Timestamps } from "./Timestamps";
export interface Conversation extends Timestamps {
_id: ObjectId;
// Can be undefined for shared convo then deleted
sessionId: string;
model: string;
title: string;
messages: Message[];
meta?: {
fromShareId?: string;
};
}