Skip to content
Merged

Dev #67

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,13 @@

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.

### [1.13.1](https://github.com/TencentCloudBase/cloudbase-agent-ui/compare/v1.13.0...v1.13.1) (2025-05-21)


### Bug Fixes

* 修复知识库匹配文案描述&loading动画优化 ([0427903](https://github.com/TencentCloudBase/cloudbase-agent-ui/commit/04279035108c888c08cf83ad977d7cb3262ab360))

## [1.13.0](https://github.com/TencentCloudBase/cloudbase-agent-ui/compare/v1.12.5...v1.13.0) (2025-05-19)


Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ Component({
allowMultiConversation: Boolean,
allowVoice: Boolean,
showToolCallDetail: Boolean,
showBotName: Boolean
showBotName: Boolean,
},
},
modelConfig: {
Expand Down Expand Up @@ -173,7 +173,7 @@ Component({
showToolCallDetail,
allowMultiConversation,
allowVoice,
showBotName
showBotName,
} = this.data.agentConfig;
allowWebSearch = allowWebSearch === undefined ? true : allowWebSearch;
allowUploadFile = allowUploadFile === undefined ? true : allowUploadFile;
Expand All @@ -182,7 +182,7 @@ Component({
showToolCallDetail = showToolCallDetail === undefined ? true : showToolCallDetail;
allowMultiConversation = allowMultiConversation === undefined ? true : allowMultiConversation;
allowVoice = allowVoice === undefined ? true : allowVoice;
showBotName = showBotName === undefined ? true: showBotName;
showBotName = showBotName === undefined ? true : showBotName;
this.setData({
bot,
questions,
Expand All @@ -194,7 +194,7 @@ Component({
showToolCallDetail: showToolCallDetail,
showMultiConversation: allowMultiConversation,
showVoice: allowVoice,
showBotName: showBotName
showBotName: showBotName,
});
console.log("bot", this.data.bot);
if (chatMode === "bot" && this.data.bot.multiConversationEnable) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@
</FoldedCard>
<!-- 知识库 -->
<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;">
已参考 {{item.knowledge_base.length}} 个知识库
已参考 {{item.knowledge_base.length}} 处知识库内容
</view>
<!-- 推理过程 -->
<FoldedCard wx:if="{{!!item.reasoning_content}}" initStatus="{{true}}" showBgColor="{{false}}">
Expand Down Expand Up @@ -178,6 +178,7 @@
</block>
</block>
</view>
<image wx:if="{{(chatRecords.length - 1) === index && (chatStatus === 2 || chatStatus === 3)}}" mode="widthFix" src='./imgs/loading.svg' style="width: 14px;height: 14px;" />
</block>
</view>
</view>
Expand Down
13 changes: 1 addition & 12 deletions components/agent-ui/imgs/loading.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 4 additions & 4 deletions components/agent-ui/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ Component({
allowMultiConversation: Boolean,
allowVoice: Boolean,
showToolCallDetail: Boolean,
showBotName: Boolean
showBotName: Boolean,
},
},
modelConfig: {
Expand Down Expand Up @@ -173,7 +173,7 @@ Component({
showToolCallDetail,
allowMultiConversation,
allowVoice,
showBotName
showBotName,
} = this.data.agentConfig;
allowWebSearch = allowWebSearch === undefined ? true : allowWebSearch;
allowUploadFile = allowUploadFile === undefined ? true : allowUploadFile;
Expand All @@ -182,7 +182,7 @@ Component({
showToolCallDetail = showToolCallDetail === undefined ? true : showToolCallDetail;
allowMultiConversation = allowMultiConversation === undefined ? true : allowMultiConversation;
allowVoice = allowVoice === undefined ? true : allowVoice;
showBotName = showBotName === undefined ? true: showBotName;
showBotName = showBotName === undefined ? true : showBotName;
this.setData({
bot,
questions,
Expand All @@ -194,7 +194,7 @@ Component({
showToolCallDetail: showToolCallDetail,
showMultiConversation: allowMultiConversation,
showVoice: allowVoice,
showBotName: showBotName
showBotName: showBotName,
});
console.log("bot", this.data.bot);
if (chatMode === "bot" && this.data.bot.multiConversationEnable) {
Expand Down
3 changes: 2 additions & 1 deletion components/agent-ui/index.wxml
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@
</FoldedCard>
<!-- 知识库 -->
<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;">
已参考 {{item.knowledge_base.length}} 个知识库
已参考 {{item.knowledge_base.length}} 处知识库内容
</view>
<!-- 推理过程 -->
<FoldedCard wx:if="{{!!item.reasoning_content}}" initStatus="{{true}}" showBgColor="{{false}}">
Expand Down Expand Up @@ -178,6 +178,7 @@
</block>
</block>
</view>
<image wx:if="{{(chatRecords.length - 1) === index && (chatStatus === 2 || chatStatus === 3)}}" mode="widthFix" src='./imgs/loading.svg' style="width: 14px;height: 14px;" />
</block>
</view>
</view>
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "cloudbase-agent-ui",
"version": "1.13.0",
"version": "1.13.1",
"description": "微信小程序 Agent UI组件",
"main": "index.js",
"directories": {
Expand Down
Loading