Skip to content
Merged

Dev #75

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.14.1](https://github.com/TencentCloudBase/cloudbase-agent-ui/compare/v1.14.0...v1.14.1) (2025-07-30)


### Bug Fixes

* 额度耗尽的错误提示 ([b6b9580](https://github.com/TencentCloudBase/cloudbase-agent-ui/commit/b6b95800693e5ecac4b64aa5fb7d462ca350bf63))

## [1.14.0](https://github.com/TencentCloudBase/cloudbase-agent-ui/compare/v1.13.2...v1.14.0) (2025-06-11)


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1425,7 +1425,12 @@ Component({
lastValue.knowledge_meta = [];
lastValue.content = this.data.defaultErrorMsg;
if (error && error.message) {
lastValue.error = error.message;
if (error.code === "EXCEED_TOKEN_QUOTA_LIMIT") {
lastValue.content = "大模型 Token 已耗尽,请通知开发者前往云开发平台进行处理";
lastValue.error = lastValue.content;
} else {
lastValue.content = error.message;
}
this.setData({
[`chatRecords[${lastValueIndex}].error`]: lastValue.error,
});
Expand Down
7 changes: 6 additions & 1 deletion components/agent-ui/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -1425,7 +1425,12 @@ Component({
lastValue.knowledge_meta = [];
lastValue.content = this.data.defaultErrorMsg;
if (error && error.message) {
lastValue.error = error.message;
if (error.code === "EXCEED_TOKEN_QUOTA_LIMIT") {
lastValue.content = "大模型 Token 已耗尽,请通知开发者前往云开发平台进行处理";
lastValue.error = lastValue.content;
} else {
lastValue.content = error.message;
}
this.setData({
[`chatRecords[${lastValueIndex}].error`]: lastValue.error,
});
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.14.0",
"version": "1.14.1",
"description": "微信小程序 Agent UI组件",
"main": "index.js",
"directories": {
Expand Down
Loading