Skip to content
Merged

Dev #81

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
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,15 @@

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.3](https://github.com/TencentCloudBase/cloudbase-agent-ui/compare/v1.14.1...v1.14.3) (2025-10-11)


### Bug Fixes

* 改造对话接口 ([2795b5a](https://github.com/TencentCloudBase/cloudbase-agent-ui/commit/2795b5a1e0d8a920c1733a9dfb268edd53cd719f))
* 修改对话接口 ([f6ebe9d](https://github.com/TencentCloudBase/cloudbase-agent-ui/commit/f6ebe9dfe20327ba3ea9afab172e199a9f31847a))
* fix bug ([40e4412](https://github.com/TencentCloudBase/cloudbase-agent-ui/commit/40e441257b040126ffb3763945bfa01f0d05be9b))

### [1.14.1](https://github.com/TencentCloudBase/cloudbase-agent-ui/compare/v1.14.0...v1.14.1) (2025-07-30)


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,32 +34,36 @@ Component({
success: async (res) => {
const appBaseInfo = wx.getAppBaseInfo();
const fileId = res.fileID;
this.triggerEvent("changeChild", { tempId: this.data.fileData.tempId, status: "parsing" });
console.log("当前版本", appBaseInfo.SDKVersion);
commonRequest({
path: `bots/${botId}/files`,
data: {
fileList: [
{
fileName: rawFileName || tempFileName,
fileId,
type: rawType,
},
],
}, // any
method: "POST",
timeout: 60000,
success: (res) => {
console.log("resolve agent file res", res);
this.triggerEvent("changeChild", { tempId: this.data.fileData.tempId, fileId, status: "parsed" });
},
fail: (e) => {
console.log("e", e);
this.triggerEvent("changeChild", { tempId: this.data.fileData.tempId, fileId, status: "parseFailed" });
},
complete: () => {},
header: {},
})
if (botId.startsWith("ibot")) {
this.triggerEvent("changeChild", { tempId: this.data.fileData.tempId, fileId, status: "parsed" });
} else {
this.triggerEvent("changeChild", { tempId: this.data.fileData.tempId, status: "parsing" });
commonRequest({
path: `bots/${botId}/files`,
data: {
fileList: [
{
fileName: rawFileName || tempFileName,
fileId,
type: rawType,
},
],
}, // any
method: "POST",
timeout: 60000,
success: (res) => {
console.log("resolve agent file res", res);
this.triggerEvent("changeChild", { tempId: this.data.fileData.tempId, fileId, status: "parsed" });
},
fail: (e) => {
console.log("e", e);
this.triggerEvent("changeChild", { tempId: this.data.fileData.tempId, fileId, status: "parseFailed" });
},
complete: () => {},
header: {},
});
}
},
fail: (err) => {
console.error("上传失败:", err);
Expand Down
54 changes: 29 additions & 25 deletions components/agent-ui/chatFile/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,32 +34,36 @@ Component({
success: async (res) => {
const appBaseInfo = wx.getAppBaseInfo();
const fileId = res.fileID;
this.triggerEvent("changeChild", { tempId: this.data.fileData.tempId, status: "parsing" });
console.log("当前版本", appBaseInfo.SDKVersion);
commonRequest({
path: `bots/${botId}/files`,
data: {
fileList: [
{
fileName: rawFileName || tempFileName,
fileId,
type: rawType,
},
],
}, // any
method: "POST",
timeout: 60000,
success: (res) => {
console.log("resolve agent file res", res);
this.triggerEvent("changeChild", { tempId: this.data.fileData.tempId, fileId, status: "parsed" });
},
fail: (e) => {
console.log("e", e);
this.triggerEvent("changeChild", { tempId: this.data.fileData.tempId, fileId, status: "parseFailed" });
},
complete: () => {},
header: {},
})
if (botId.startsWith("ibot")) {
this.triggerEvent("changeChild", { tempId: this.data.fileData.tempId, fileId, status: "parsed" });
} else {
this.triggerEvent("changeChild", { tempId: this.data.fileData.tempId, status: "parsing" });
commonRequest({
path: `bots/${botId}/files`,
data: {
fileList: [
{
fileName: rawFileName || tempFileName,
fileId,
type: rawType,
},
],
}, // any
method: "POST",
timeout: 60000,
success: (res) => {
console.log("resolve agent file res", res);
this.triggerEvent("changeChild", { tempId: this.data.fileData.tempId, fileId, status: "parsed" });
},
fail: (e) => {
console.log("e", e);
this.triggerEvent("changeChild", { tempId: this.data.fileData.tempId, fileId, status: "parseFailed" });
},
complete: () => {},
header: {},
});
}
},
fail: (err) => {
console.error("上传失败:", err);
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.2",
"version": "1.14.3",
"description": "微信小程序 Agent UI组件",
"main": "index.js",
"directories": {
Expand Down
Loading