Skip to content

m177 release#7828

Open
github-actions[bot] wants to merge 6 commits intoreleases/m177from
releases/m177.release
Open

m177 release#7828
github-actions[bot] wants to merge 6 commits intoreleases/m177from
releases/m177.release

Conversation

@github-actions
Copy link
Contributor

Auto-generated PR for release m177

@google-cla
Copy link

google-cla bot commented Feb 19, 2026

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

@google-oss-bot
Copy link
Collaborator

1 Warning
⚠️ Did you forget to add a changelog entry? (Add the 'no-changelog' label to the PR to silence this warning.)

Generated by 🚫 Danger

emilypgoogle and others added 5 commits February 19, 2026 20:11
Implemented `downsizeBitmapIfNeeded` to scale down bitmaps before they
are used in `ImagePart` conversions. This ensures that the shorter
dimension of the bitmap does not exceed 768 pixels, optimizing image
processing for ML Kit.

Manually tested using a Pixel10 and a 10MB image

Change will be rolled back after bumping dep on ML Kit.
Introduced `withFlowFallback` to handle exceptions during
`generateContentStream` flow collection.

Flows exception should be handled at **collection time** rather than at
creation time. Also, fallback should only occurs if no items have been
successfully emitted by the default model, preventing inconsistent
responses from mixed sources.

Tests were updated to validate this behavior, including scenarios with
partial emissions and various exception types.
The `parametersSchema`, `parametersJsonSchema` and `responseJsonSchema`
fields in the `FunctionDeclaration` constructor now have default `null`
values. This makes them optional during object construction, and doesn't
include them in the serialized request.

Having both `parametersSchema` and `parametersJsonSchema` in the
serialized requests caused them to be rejected by the service.

Fix has been tested manually using the Firebase AI Quickstart app in
https://github.com/firebase/quickstart-android/tree/master/firebase-ai

Internal b/487646970
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.

3 participants