Skip to content

fix(firebase_ai): Added InlineDataPart for File response in Gemini Api #17451

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

theshivamlko
Copy link

Description

Fixed parsing File response using InlineDataPart in developer/api.dart

Previously it was throwing error on Image generation via Gemin API, even image base64 response was received by app.
inlineData content part not yet supported

Related Issues

Issue fixed #17449
[firebase_ai] FirebaseAI.googleAI() Does not support generating images

Checklist

  • [x ] I read the Contributor Guide and followed the process outlined there for submitting PRs.
  • [x ] My PR includes unit or integration tests for all changed/updated/fixed behaviors (See Contributor Guide).
  • [x ] All existing and new tests are passing.
  • I updated/added relevant documentation (doc comments with ///).
  • [x ] The analyzer (melos run analyze) does not report any problems on my PR.
  • I read and followed the Flutter Style Guide.
  • [ x] I signed the CLA.
  • [x ] I am willing to follow-up on review comments in a timely manner.

Breaking Change

Does your PR require plugin users to manually update their apps to accommodate your change?

  • [ x] Yes, this is a breaking change.
  • No, this is not a breaking change.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

🚀 [firebase_ai] FirebaseAI.googleAI() Does not support generating images
1 participant