chat-ui / src /lib /types /Conversation.ts
MichaelFried's picture
Add embedding models configurable, from both transformers.js and TEI (#646)
3a01622 unverified
raw
history blame
No virus
424 Bytes
import type { ObjectId } from "mongodb";
import type { Message } from "./Message";
import type { Timestamps } from "./Timestamps";
import type { User } from "./User";
export interface Conversation extends Timestamps {
_id: ObjectId;
sessionId?: string;
userId?: User["_id"];
model: string;
embeddingModel: string;
title: string;
messages: Message[];
meta?: {
fromShareId?: string;
};
preprompt?: string;
}