File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed
apps/miniprogram-agent-ui/miniprogram Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change 99 // env 参数决定接下来小程序发起的云开发调用(wx.cloud.xxx)会默认请求到哪个云环境的资源
1010 // 此处请填入环境 ID, 环境 ID 可打开云控制台查看
1111 // 如不填则使用默认环境(第一个创建的环境)
12- env : "luke-agent-dev-7g1nc8tqc2ab76af " ,
12+ env : "" ,
1313 traceUser : true ,
1414 } ) ;
1515 }
Original file line number Diff line number Diff 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 : {
You can’t perform that action at this time.
0 commit comments