From 8ea23ef3d19291f4170a21e07dbc1fba3a76d912 Mon Sep 17 00:00:00 2001 From: MomoWen <450481891@qq.com> Date: Tue, 7 Apr 2026 14:37:54 +0800 Subject: [PATCH] =?UTF-8?q?docs:=20=E4=B8=BA=E6=A8=A1=E5=BC=8F=E5=8F=82?= =?UTF-8?q?=E6=95=B0=E6=B7=BB=E5=8A=A0=E6=B3=A8=E9=87=8A=E5=B9=B6=E6=9B=B4?= =?UTF-8?q?=E6=96=B0=E6=AC=A2=E8=BF=8E=E8=AF=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 在聊天API请求中添加模式参数的注释,说明各模式用途 - 将AI助手名称从“小慧”更改为“小宝” --- pocket-base/bai_chat_alm_hooks/bai-chat.pb.js | 2 +- pocket-base/bai_chat_alm_hooks/views/bai-chat-index.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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,