Skip to content

Commit db10293

Browse files
authored
Merge pull request #67 from TencentCloudBase/dev
Dev
2 parents d8f3cac + e36ae71 commit db10293

File tree

9 files changed

+24
-37
lines changed

9 files changed

+24
-37
lines changed

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,13 @@
22

33
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
44

5+
### [1.13.1](https://github.com/TencentCloudBase/cloudbase-agent-ui/compare/v1.13.0...v1.13.1) (2025-05-21)
6+
7+
8+
### Bug Fixes
9+
10+
* 修复知识库匹配文案描述&loading动画优化 ([0427903](https://github.com/TencentCloudBase/cloudbase-agent-ui/commit/04279035108c888c08cf83ad977d7cb3262ab360))
11+
512
## [1.13.0](https://github.com/TencentCloudBase/cloudbase-agent-ui/compare/v1.12.5...v1.13.0) (2025-05-19)
613

714

Lines changed: 1 addition & 12 deletions
Loading

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ Component({
3030
allowMultiConversation: Boolean,
3131
allowVoice: Boolean,
3232
showToolCallDetail: Boolean,
33-
showBotName: Boolean
33+
showBotName: Boolean,
3434
},
3535
},
3636
modelConfig: {
@@ -173,7 +173,7 @@ Component({
173173
showToolCallDetail,
174174
allowMultiConversation,
175175
allowVoice,
176-
showBotName
176+
showBotName,
177177
} = this.data.agentConfig;
178178
allowWebSearch = allowWebSearch === undefined ? true : allowWebSearch;
179179
allowUploadFile = allowUploadFile === undefined ? true : allowUploadFile;
@@ -182,7 +182,7 @@ Component({
182182
showToolCallDetail = showToolCallDetail === undefined ? true : showToolCallDetail;
183183
allowMultiConversation = allowMultiConversation === undefined ? true : allowMultiConversation;
184184
allowVoice = allowVoice === undefined ? true : allowVoice;
185-
showBotName = showBotName === undefined ? true: showBotName;
185+
showBotName = showBotName === undefined ? true : showBotName;
186186
this.setData({
187187
bot,
188188
questions,
@@ -194,7 +194,7 @@ Component({
194194
showToolCallDetail: showToolCallDetail,
195195
showMultiConversation: allowMultiConversation,
196196
showVoice: allowVoice,
197-
showBotName: showBotName
197+
showBotName: showBotName,
198198
});
199199
console.log("bot", this.data.bot);
200200
if (chatMode === "bot" && this.data.bot.multiConversationEnable) {

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@
9999
</FoldedCard>
100100
<!-- 知识库 -->
101101
<view wx:if="{{item.knowledge_base&&item.knowledge_base.length}}" style="border-radius: 8px;margin-bottom: 12px;background-color: #f5f5f5;padding: 18rpx 26rpx;display: inline-block;opacity: 0.7;font-size: 14px;">
102-
已参考 {{item.knowledge_base.length}} 个知识库
102+
已参考 {{item.knowledge_base.length}} 处知识库内容
103103
</view>
104104
<!-- 推理过程 -->
105105
<FoldedCard wx:if="{{!!item.reasoning_content}}" initStatus="{{true}}" showBgColor="{{false}}">
@@ -178,6 +178,7 @@
178178
</block>
179179
</block>
180180
</view>
181+
<image wx:if="{{(chatRecords.length - 1) === index && (chatStatus === 2 || chatStatus === 3)}}" mode="widthFix" src='./imgs/loading.svg' style="width: 14px;height: 14px;" />
181182
</block>
182183
</view>
183184
</view>
Lines changed: 1 addition & 12 deletions
Loading

components/agent-ui/index.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ Component({
3030
allowMultiConversation: Boolean,
3131
allowVoice: Boolean,
3232
showToolCallDetail: Boolean,
33-
showBotName: Boolean
33+
showBotName: Boolean,
3434
},
3535
},
3636
modelConfig: {
@@ -173,7 +173,7 @@ Component({
173173
showToolCallDetail,
174174
allowMultiConversation,
175175
allowVoice,
176-
showBotName
176+
showBotName,
177177
} = this.data.agentConfig;
178178
allowWebSearch = allowWebSearch === undefined ? true : allowWebSearch;
179179
allowUploadFile = allowUploadFile === undefined ? true : allowUploadFile;
@@ -182,7 +182,7 @@ Component({
182182
showToolCallDetail = showToolCallDetail === undefined ? true : showToolCallDetail;
183183
allowMultiConversation = allowMultiConversation === undefined ? true : allowMultiConversation;
184184
allowVoice = allowVoice === undefined ? true : allowVoice;
185-
showBotName = showBotName === undefined ? true: showBotName;
185+
showBotName = showBotName === undefined ? true : showBotName;
186186
this.setData({
187187
bot,
188188
questions,
@@ -194,7 +194,7 @@ Component({
194194
showToolCallDetail: showToolCallDetail,
195195
showMultiConversation: allowMultiConversation,
196196
showVoice: allowVoice,
197-
showBotName: showBotName
197+
showBotName: showBotName,
198198
});
199199
console.log("bot", this.data.bot);
200200
if (chatMode === "bot" && this.data.bot.multiConversationEnable) {

components/agent-ui/index.wxml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@
9999
</FoldedCard>
100100
<!-- 知识库 -->
101101
<view wx:if="{{item.knowledge_base&&item.knowledge_base.length}}" style="border-radius: 8px;margin-bottom: 12px;background-color: #f5f5f5;padding: 18rpx 26rpx;display: inline-block;opacity: 0.7;font-size: 14px;">
102-
已参考 {{item.knowledge_base.length}} 个知识库
102+
已参考 {{item.knowledge_base.length}} 处知识库内容
103103
</view>
104104
<!-- 推理过程 -->
105105
<FoldedCard wx:if="{{!!item.reasoning_content}}" initStatus="{{true}}" showBgColor="{{false}}">
@@ -178,6 +178,7 @@
178178
</block>
179179
</block>
180180
</view>
181+
<image wx:if="{{(chatRecords.length - 1) === index && (chatStatus === 2 || chatStatus === 3)}}" mode="widthFix" src='./imgs/loading.svg' style="width: 14px;height: 14px;" />
181182
</block>
182183
</view>
183184
</view>

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "cloudbase-agent-ui",
3-
"version": "1.13.0",
3+
"version": "1.13.1",
44
"description": "微信小程序 Agent UI组件",
55
"main": "index.js",
66
"directories": {

0 commit comments

Comments
 (0)