Merge branch 'main' of http://blv-rd.tech:3001/Boonlive_RD_Web/Web_BAI_Manage_ApiServer
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