Skip to content
Closed
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
2 changes: 1 addition & 1 deletion bizyui/js/apply_image_to_node.js
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ window.addEventListener('message', async function(event) {
// 发送请求
const headers = {};
if (token) {
headers["Authorization"] = `Bearer ${token}`;
headers["Authorization"] = token;
}

const response = await fetch('/upload/image', {
Expand Down
2 changes: 1 addition & 1 deletion bizyui/js/model_apply.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ const NodeInfoLogger = (function() {
const imageUrl = buildImageUrl(filename, type);
const headers = {};
if (token) {
headers["Authorization"] = `Bearer ${token}`;
headers["Authorization"] = token;
}

const response = await fetch(imageUrl, {
Expand Down
2 changes: 1 addition & 1 deletion bizyui/js/siliconcloud_llm_api.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ const createModelFetchExtension = (nodeName, endpoint) => {

// 只有在token存在时才添加Authorization头
if (token) {
headers["Authorization"] = `Bearer ${token}`;
headers["Authorization"] = token;
}

const response = await fetch(endpoint, {
Expand Down
Loading