chat-ui / src /lib /types /Assistant.ts
nsarrazin's picture
nsarrazin HF staff
Bring back featured check on top assistants page (#765)
0b2a549 unverified
raw history blame
No virus
447 Bytes
import type { ObjectId } from "mongodb";
import type { User } from "./User";
import type { Timestamps } from "./Timestamps";
export interface Assistant extends Timestamps {
_id: ObjectId;
createdById: User["_id"] | string; // user id or session
createdByName?: User["username"];
avatar?: string;
name: string;
description?: string;
modelId: string;
exampleInputs: string[];
preprompt: string;
userCount?: number;
featured?: boolean;
}