Skip to content

Commit 9e2a868

Browse files
committed
feat: 修改参数
1 parent 1bffa08 commit 9e2a868

File tree

2 files changed

+3
-2
lines changed
  • apps/miniprogram-agent-ui/miniprogram

2 files changed

+3
-2
lines changed

apps/miniprogram-agent-ui/miniprogram/app.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ App({
99
// env 参数决定接下来小程序发起的云开发调用(wx.cloud.xxx)会默认请求到哪个云环境的资源
1010
// 此处请填入环境 ID, 环境 ID 可打开云控制台查看
1111
// 如不填则使用默认环境(第一个创建的环境)
12-
env: "luke-agent-dev-7g1nc8tqc2ab76af",
12+
env: "",
1313
traceUser: true,
1414
});
1515
}

apps/miniprogram-agent-ui/miniprogram/components/agent-ui/index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -671,7 +671,7 @@ Component({
671671
if (!inputValue) {
672672
return;
673673
}
674-
const { modelProvider, quickResponseModel } = modelConfig;
674+
675675
const chatMode = this.data.chatMode;
676676
// console.log(inputValue,bot.botId)
677677
const userRecord = {
@@ -854,6 +854,7 @@ Component({
854854
}
855855
}
856856
if (chatMode === "model") {
857+
const { modelProvider, quickResponseModel } = modelConfig;
857858
const aiModel = wx.cloud.extend.AI.createModel(modelProvider);
858859
const res = await aiModel.streamText({
859860
data: {

0 commit comments

Comments
 (0)