Skip to content

fix(ai): Add 'includeSafetyAttributes' to Predict request payloads #9216

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

dlarocque
Copy link
Contributor

Add 'includeSafetyAttributes' to Predict request payloads, and set it to true.
This is identical to how we send 'includeRaiReason'.

Fixes b/438467377 (internal)

@dlarocque dlarocque requested review from a team as code owners August 20, 2025 16:05
Copy link

changeset-bot bot commented Aug 20, 2025

🦋 Changeset detected

Latest commit: ab77e26

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 2 packages
Name Type
@firebase/ai Patch
firebase Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@google-oss-bot
Copy link
Contributor

Size Report 1

Affected Products

  • @firebase/ai

    TypeBase (2058432)Merge (5d10941)Diff
    browser45.8 kB45.9 kB+29 B (+0.1%)
    main48.9 kB48.9 kB+29 B (+0.1%)
    module45.8 kB45.9 kB+29 B (+0.1%)
  • firebase

    TypeBase (2058432)Merge (5d10941)Diff
    firebase-ai.js35.8 kB35.8 kB+27 B (+0.1%)

Test Logs

  1. https://storage.googleapis.com/firebase-sdk-metric-reports/y0jM3CU0hQ.html

@google-oss-bot
Copy link
Contributor

Size Analysis Report 1

Affected Products

  • @firebase/ai

    • ImagenModel

      Size

      TypeBase (2058432)Merge (5d10941)Diff
      size8.99 kB9.02 kB+29 B (+0.3%)
      size-with-ext-deps26.6 kB26.7 kB+29 B (+0.1%)
    • getImagenModel

      Size

      TypeBase (2058432)Merge (5d10941)Diff
      size9.15 kB9.18 kB+29 B (+0.3%)
      size-with-ext-deps26.8 kB26.8 kB+29 B (+0.1%)

Test Logs

  1. https://storage.googleapis.com/firebase-sdk-metric-reports/fg7BRoXFV6.html

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