-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[FR]: Add a field to ImagenInlineImage for the base64 encoded image #14603
Comments
@thatfiredev Do you know why the Android SDK doesn't decode the base64 for the developer in On Apple platforms, I don't have a use case in mind for the image data encoded as base64. The user journeys I've considered are:
In both the GCS and disk cases, devs will likely eventually want to show these in a UI where they'll need to decode the base64 anyway. We could offer an additional
However, I feel that this adds unnecessary confusion to our API surface (e.g., "Should I read the image data from Note: We had intentionally decided to diverge on this API surface between Swift/Android and JS because, in JS, the base64 string is useful because HTML @rachelsaunders @paulb777 Do you feel strongly about adding a |
cc: @peterfriese to get your thoughts too. |
Hey @thatfiredev. We need more information to resolve this issue but there hasn't been an update in 5 weekdays. I'm marking the issue as stale and if there are no new updates in the next 5 days I will close it automatically. If you have more information that will help us get to the bottom of this, just add a comment! |
After some offline discussion we have decided that exposing the |
Description
TL;DR: Should we add an extra field to
ImagenInlineImage
that exposes thebytesBase64Encoded
from the Imagen response? (for feature parity with the other SDKs)All the other Vertex AI in Firebase SDKs return the raw base64 encoded image:
Swift seems to decode the base64 image before returning it as
data: Data
:firebase-ios-sdk/FirebaseVertexAI/Sources/Types/Public/Imagen/ImagenInlineImage.swift
Line 63 in b01a8f2
API Proposal
No response
Firebase Product(s)
Vertex AI
The text was updated successfully, but these errors were encountered: