docs: 为模式参数添加注释并更新欢迎语
- 在聊天API请求中添加模式参数的注释,说明各模式用途 - 将AI助手名称从“小慧”更改为“小宝”
This commit is contained in:
@@ -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: {
|
||||||
|
|||||||
@@ -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,
|
||||||
|
|||||||
Reference in New Issue
Block a user