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.

32 lines (26 loc) 1.09 kB
import { QueryRewriteSystemAgent, SystemAgentItem, UserSystemAgentConfig, } from '@/types/user/settings'; import { DEFAULT_MODEL, DEFAULT_PROVIDER } from './llm'; export const DEFAULT_REWRITE_QUERY = 'Given the following conversation and a follow-up question, rephrase the follow up question to be a standalone question, in its original language. Keep as much details as possible from previous messages. Keep entity names and all.'; export const DEFAULT_SYSTEM_AGENT_ITEM: SystemAgentItem = { model: DEFAULT_MODEL, provider: DEFAULT_PROVIDER, }; export const DEFAULT_QUERY_REWRITE_SYSTEM_AGENT_ITEM: QueryRewriteSystemAgent = { enabled: true, model: DEFAULT_MODEL, provider: DEFAULT_PROVIDER, }; export const DEFAULT_SYSTEM_AGENT_CONFIG: UserSystemAgentConfig = { agentMeta: DEFAULT_SYSTEM_AGENT_ITEM, generationTopic: DEFAULT_SYSTEM_AGENT_ITEM, historyCompress: DEFAULT_SYSTEM_AGENT_ITEM, queryRewrite: DEFAULT_QUERY_REWRITE_SYSTEM_AGENT_ITEM, thread: DEFAULT_SYSTEM_AGENT_ITEM, topic: DEFAULT_SYSTEM_AGENT_ITEM, translation: DEFAULT_SYSTEM_AGENT_ITEM, };