UNPKG

@lobehub/chat

Version:

Lobe Chat - an open-source, high-performance chatbot framework that supports speech synthesis, multimodal, and extensible Function Call plugin system. Supports one-click free deployment of your private ChatGPT/LLM web application.

31 lines (24 loc) 515 B
import { z } from 'zod'; export const LobeMetaDataSchema = z.object({ /** * 角色头像 */ avatar: z.string().optional(), /** * 背景色 */ backgroundColor: z.string().optional(), description: z.string().optional(), tags: z.array(z.string()).optional(), /** * 名称 */ title: z.string().optional(), }); export type MetaData = z.infer<typeof LobeMetaDataSchema>; export interface BaseDataModel { createdAt: number; id: string; meta: MetaData; updatedAt: number; }