Compare commits
2 Commits
cafd69ea2c
...
ab9f075d61
| Author | SHA1 | Date | |
|---|---|---|---|
| ab9f075d61 | |||
| 8ea23ef3d1 |
@@ -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: {
|
||||
|
||||
@@ -121,7 +121,7 @@
|
||||
document.addEventListener('alpine:init', () => {
|
||||
Alpine.data('weChat', () => ({
|
||||
messages: [
|
||||
{ role: 'ai', content: '您好!我是您的专属助理小慧。有什么可以帮到您?' }
|
||||
{ role: 'ai', content: '您好!我是您的专属助理小宝。有什么可以帮到您?' }
|
||||
],
|
||||
inputMsg: '',
|
||||
isTyping: false,
|
||||
|
||||
Reference in New Issue
Block a user