diff --git a/bizyui/js/apply_image_to_node.js b/bizyui/js/apply_image_to_node.js index dbfbd2df..b6a2962f 100644 --- a/bizyui/js/apply_image_to_node.js +++ b/bizyui/js/apply_image_to_node.js @@ -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', { diff --git a/bizyui/js/model_apply.js b/bizyui/js/model_apply.js index ae587a9e..4fe7d04e 100644 --- a/bizyui/js/model_apply.js +++ b/bizyui/js/model_apply.js @@ -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, { diff --git a/bizyui/js/siliconcloud_llm_api.js b/bizyui/js/siliconcloud_llm_api.js index 82941303..6e368f07 100644 --- a/bizyui/js/siliconcloud_llm_api.js +++ b/bizyui/js/siliconcloud_llm_api.js @@ -52,7 +52,7 @@ const createModelFetchExtension = (nodeName, endpoint) => { // 只有在token存在时才添加Authorization头 if (token) { - headers["Authorization"] = `Bearer ${token}`; + headers["Authorization"] = token; } const response = await fetch(endpoint, { diff --git a/src/views/btnCommunity/index.vue b/src/views/btnCommunity/index.vue index 79b55eae..aee4a914 100644 --- a/src/views/btnCommunity/index.vue +++ b/src/views/btnCommunity/index.vue @@ -1,6 +1,6 @@