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.

74 lines (62 loc) 1.3 kB
import { FileItem } from '@/types/files'; import { KnowledgeBaseItem } from '@/types/knowledgeBase'; import { FewShots, LLMParams } from '@/types/llm'; import { LobeAgentChatConfig } from './chatConfig'; export type TTSServer = 'openai' | 'edge' | 'microsoft'; export interface LobeAgentTTSConfig { showAllLocaleVoice?: boolean; sttLocale: 'auto' | string; ttsService: TTSServer; voice: { edge?: string; microsoft?: string; openai: string; }; } export interface LobeAgentConfig { chatConfig: LobeAgentChatConfig; fewShots?: FewShots; files?: FileItem[]; id?: string; /** * knowledge bases */ knowledgeBases?: KnowledgeBaseItem[]; /** * 角色所使用的语言模型 * @default gpt-4o-mini */ model: string; /** * 开场白 */ openingMessage?: string; /** * 开场问题 */ openingQuestions?: string[]; /** * 语言模型参数 */ params: LLMParams; /** * 启用的插件 */ plugins?: string[]; /** * 模型供应商 */ provider?: string; /** * 系统角色 */ systemRole: string; /** * 语音服务 */ tts: LobeAgentTTSConfig; } export type LobeAgentConfigKeys = | keyof LobeAgentConfig | ['params', keyof LobeAgentConfig['params']]; export * from './chatConfig';