🔥 fix: Firebase Support for Nano Banana Tool (#11228)

This commit is contained in:
Cha 2026-01-07 00:19:38 +08:00 committed by GitHub
parent f8383f2fc8
commit 35137c21e6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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;