Skip to content

Commit dee3b1d

Browse files
authored
Merge pull request #75 from TencentCloudBase/dev
Dev
2 parents 467cc48 + fe7e4e7 commit dee3b1d

5 files changed

Lines changed: 22 additions & 5 deletions

File tree

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.14.1](https://github.com/TencentCloudBase/cloudbase-agent-ui/compare/v1.14.0...v1.14.1) (2025-07-30)
6+
7+
8+
### Bug Fixes
9+
10+
* 额度耗尽的错误提示 ([b6b9580](https://github.com/TencentCloudBase/cloudbase-agent-ui/commit/b6b95800693e5ecac4b64aa5fb7d462ca350bf63))
11+
512
## [1.14.0](https://github.com/TencentCloudBase/cloudbase-agent-ui/compare/v1.13.2...v1.14.0) (2025-06-11)
613

714

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

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1425,7 +1425,12 @@ Component({
14251425
lastValue.knowledge_meta = [];
14261426
lastValue.content = this.data.defaultErrorMsg;
14271427
if (error && error.message) {
1428-
lastValue.error = error.message;
1428+
if (error.code === "EXCEED_TOKEN_QUOTA_LIMIT") {
1429+
lastValue.content = "大模型 Token 已耗尽,请通知开发者前往云开发平台进行处理";
1430+
lastValue.error = lastValue.content;
1431+
} else {
1432+
lastValue.content = error.message;
1433+
}
14291434
this.setData({
14301435
[`chatRecords[${lastValueIndex}].error`]: lastValue.error,
14311436
});

components/agent-ui/index.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1425,7 +1425,12 @@ Component({
14251425
lastValue.knowledge_meta = [];
14261426
lastValue.content = this.data.defaultErrorMsg;
14271427
if (error && error.message) {
1428-
lastValue.error = error.message;
1428+
if (error.code === "EXCEED_TOKEN_QUOTA_LIMIT") {
1429+
lastValue.content = "大模型 Token 已耗尽,请通知开发者前往云开发平台进行处理";
1430+
lastValue.error = lastValue.content;
1431+
} else {
1432+
lastValue.content = error.message;
1433+
}
14291434
this.setData({
14301435
[`chatRecords[${lastValueIndex}].error`]: lastValue.error,
14311436
});

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.14.0",
3+
"version": "1.14.1",
44
"description": "微信小程序 Agent UI组件",
55
"main": "index.js",
66
"directories": {

0 commit comments

Comments
 (0)