From 0bb0b3501a7911372f8bc3dc5ce7d58f2235fad3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9E=97=E5=B3=BB=E6=98=8E?= Date: Mon, 16 Jun 2025 11:56:02 +0800 Subject: [PATCH 1/2] =?UTF-8?q?[fix]=E5=8E=BB=E6=8E=89=E8=87=AA=E5=AE=9A?= =?UTF-8?q?=E4=B9=89=E8=AF=B7=E6=B1=82=E5=A4=B4Authorization=E5=AD=97?= =?UTF-8?q?=E6=AE=B5=E7=9A=84Bearer=E5=89=8D=E7=BC=80=20(#70)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * [fix]去掉自定义请求头Authorization字段的Bearer前缀 * Update version.txt --------- Co-authored-by: Yao Chi --- bizyui/js/apply_image_to_node.js | 2 +- bizyui/js/model_apply.js | 2 +- bizyui/js/siliconcloud_llm_api.js | 2 +- version.txt | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) 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/version.txt b/version.txt index c1147005..f2ae0b4a 100644 --- a/version.txt +++ b/version.txt @@ -1 +1 @@ -1.2.11 +1.2.12 From 8381b9f8295c17bba14eaba1e3e5133d63ed68c7 Mon Sep 17 00:00:00 2001 From: dfhfg123 <3247895009@qq.com> Date: Wed, 18 Jun 2025 15:35:10 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E7=A4=BE=E5=8C=BAbutton=E5=8A=A0=E4=B8=80?= =?UTF-8?q?=E4=B8=AA=E6=8C=89=E9=92=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/btnCommunity/index.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 @@