Compare commits

...

2 Commits

Author SHA1 Message Date
ab9f075d61 Merge branch 'main' of http://10.8.8.210:3001/Boonlive_RD_Web/Web_BAI_Manage_ApiServer 2026-04-07 14:37:57 +08:00
8ea23ef3d1 docs: 为模式参数添加注释并更新欢迎语
- 在聊天API请求中添加模式参数的注释,说明各模式用途
- 将AI助手名称从“小慧”更改为“小宝”
2026-04-07 14:37:54 +08:00
2 changed files with 2 additions and 2 deletions

View File

@@ -37,7 +37,7 @@ routerAdd("POST", "/pb-api-v1/chat/send", (c) => {
method: "POST", method: "POST",
body: JSON.stringify({ body: JSON.stringify({
"message": userMsg, "message": userMsg,
"mode": "chat", "mode": "chat", // chat: 对话模式query: 问答模式, agent: 代理模式
"sessionId": "8888" "sessionId": "8888"
}), }),
headers: { headers: {

View File

@@ -121,7 +121,7 @@
document.addEventListener('alpine:init', () => { document.addEventListener('alpine:init', () => {
Alpine.data('weChat', () => ({ Alpine.data('weChat', () => ({
messages: [ messages: [
{ role: 'ai', content: '您好!我是您的专属助理小。有什么可以帮到您?' } { role: 'ai', content: '您好!我是您的专属助理小。有什么可以帮到您?' }
], ],
inputMsg: '', inputMsg: '',
isTyping: false, isTyping: false,