From 35137c21e69c549b419e8e612407d24f9744abfd Mon Sep 17 00:00:00 2001 From: Cha Date: Wed, 7 Jan 2026 00:19:38 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A5=20fix:=20Firebase=20Support=20for?= =?UTF-8?q?=20Nano=20Banana=20Tool=20(#11228)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/server/services/Files/images/encode.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api/server/services/Files/images/encode.js b/api/server/services/Files/images/encode.js index e719e58af3..93d0aebd4b 100644 --- a/api/server/services/Files/images/encode.js +++ b/api/server/services/Files/images/encode.js @@ -80,7 +80,7 @@ const base64Only = new Set([ EModelEndpoint.bedrock, ]); -const blobStorageSources = new Set([FileSources.azure_blob, FileSources.s3]); +const blobStorageSources = new Set([FileSources.azure_blob, FileSources.s3, FileSources.firebase]); /** * Encodes and formats the given files. @@ -127,7 +127,7 @@ async function encodeAndFormat(req, files, params, mode) { } const preparePayload = encodingMethods[source].prepareImagePayload; - /* We need to fetch the image and convert it to base64 if we are using S3/Azure Blob storage. */ + /* We need to fetch the image and convert it to base64 if we are using S3/Azure Blob/Firebase storage. */ if (blobStorageSources.has(source)) { try { const downloadStream = encodingMethods[source].getDownloadStream;