diff --git a/pocket-base/bai_chat_alm_hooks/bai-chat.pb.js b/pocket-base/bai_chat_alm_hooks/bai-chat.pb.js index e25c793..496f6b5 100644 --- a/pocket-base/bai_chat_alm_hooks/bai-chat.pb.js +++ b/pocket-base/bai_chat_alm_hooks/bai-chat.pb.js @@ -37,7 +37,7 @@ routerAdd("POST", "/pb-api-v1/chat/send", (c) => { method: "POST", body: JSON.stringify({ "message": userMsg, - "mode": "chat", + "mode": "chat", // chat: 对话模式,query: 问答模式, agent: 代理模式 "sessionId": "8888" }), headers: { diff --git a/pocket-base/bai_chat_alm_hooks/views/bai-chat-index.html b/pocket-base/bai_chat_alm_hooks/views/bai-chat-index.html index 473d334..d398ba8 100644 --- a/pocket-base/bai_chat_alm_hooks/views/bai-chat-index.html +++ b/pocket-base/bai_chat_alm_hooks/views/bai-chat-index.html @@ -121,7 +121,7 @@ document.addEventListener('alpine:init', () => { Alpine.data('weChat', () => ({ messages: [ - { role: 'ai', content: '您好!我是您的专属助理小慧。有什么可以帮到您?' } + { role: 'ai', content: '您好!我是您的专属助理小宝。有什么可以帮到您?' } ], inputMsg: '', isTyping: false,