Skip to content

Commit 2f16d2a

Browse files
committed
fix
1 parent f4b0ab9 commit 2f16d2a

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

bizyui/js/apply_image_to_node.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ window.addEventListener('message', async function(event) {
109109
// 发送请求
110110
const headers = {};
111111
if (token) {
112-
headers["Authorization"] = `Bearer ${token}`;
112+
headers["Authorization"] = token;
113113
}
114114

115115
const response = await fetch('/upload/image', {

bizyui/js/model_apply.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ const NodeInfoLogger = (function() {
6161
const imageUrl = buildImageUrl(filename, type);
6262
const headers = {};
6363
if (token) {
64-
headers["Authorization"] = `Bearer ${token}`;
64+
headers["Authorization"] = token;
6565
}
6666

6767
const response = await fetch(imageUrl, {

bizyui/js/siliconcloud_llm_api.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ const createModelFetchExtension = (nodeName, endpoint) => {
5252

5353
// 只有在token存在时才添加Authorization头
5454
if (token) {
55-
headers["Authorization"] = `Bearer ${token}`;
55+
headers["Authorization"] = token;
5656
}
5757

5858
const response = await fetch(endpoint, {

0 commit comments

Comments
 (0)