|
|
@@ -142,8 +142,7 @@ export function createMessage( override : Partial<ChatMessage> ) : ChatMessage {
|
|
|
|
|
|
export const BOT_HELLO : ChatMessage = createMessage( {
|
|
|
role: "assistant",
|
|
|
- content: '你好,我是小智~\n' +
|
|
|
- '我可以帮助你快速查询作业指导书、规范条文、公司信息等内容,如需获取上述内容,请点击上方导航栏中的「专业知识」或「职能管理」,选择相应的智能体进行提问。无论是现场技术,还是制度流程,我都会尽力为你解答!\n' +
|
|
|
+ content: '我可以帮助你快速查询作业指导书、规范条文、公司信息等内容,如需获取上述内容,请点击上方导航栏中的「专业知识」或「职能管理」,选择相应的智能体进行提问。无论是现场技术,还是制度流程,我都会尽力为你解答!\n' +
|
|
|
'请注意:在这个对话框内,我只能请DeepSeek来帮忙回答常见通用问题哦!',
|
|
|
} );
|
|
|
|
|
|
@@ -885,7 +884,7 @@ function _Chat(props?: { onMessageSent?: () => void }) {
|
|
|
del: () => chatStore.deleteSession( chatStore.currentSessionIndex ),
|
|
|
} );
|
|
|
|
|
|
- // only search prompts when user input is short
|
|
|
+ // only search prompts when user input is short
|
|
|
const SEARCH_TEXT_LIMIT = 30;
|
|
|
const onInput = ( text : string ) => {
|
|
|
setUserInput( text );
|
|
|
@@ -1962,4 +1961,4 @@ export function Chat(props?: { onMessageSent?: () => void }) {
|
|
|
}, [] );
|
|
|
|
|
|
return <_Chat key={ sessionIndex } onMessageSent={props?.onMessageSent}></_Chat>;
|
|
|
-}
|
|
|
+}
|