Skip to content

AI Hybrid Inference: migrate to LanguageModelMessage #9027

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

Merged
merged 2 commits into from
May 28, 2025

Conversation

erikeldridge
Copy link

@erikeldridge erikeldridge commented May 13, 2025

NOTE: this is a placeholder until support is added

Chrome will add support for the official LanguageModelMessage[] input type, so this change updates the hybrid SDK to normalize to that type rather than LanguageModelMessageContent[].

@erikeldridge erikeldridge requested a review from a team as a code owner May 13, 2025 17:26
Copy link

changeset-bot bot commented May 13, 2025

🦋 Changeset detected

Latest commit: e96b992

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

This PR includes changesets to release 30 packages
Name Type
@firebase/firestore Patch
@firebase/util Minor
@firebase/ai Minor
@firebase/app-compat Minor
@firebase/app-check Minor
@firebase/app Minor
firebase Minor
@firebase/auth Patch
@firebase/database Patch
@firebase/storage Patch
@firebase/functions Patch
@firebase/firestore-compat Patch
@firebase/analytics-compat Patch
@firebase/analytics Patch
@firebase/app-check-compat Patch
@firebase/auth-compat Patch
@firebase/component Patch
@firebase/data-connect Patch
@firebase/database-compat Patch
@firebase/database-types Patch
@firebase/functions-compat Patch
@firebase/installations-compat Patch
@firebase/installations Patch
@firebase/messaging-compat Patch
@firebase/messaging Patch
@firebase/performance-compat Patch
@firebase/performance Patch
@firebase/remote-config-compat Patch
@firebase/remote-config Patch
@firebase/storage-compat 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

Copy link
Contributor

Vertex AI Mock Responses Check ⚠️

A newer major version of the mock responses for Vertex AI unit tests is available. update_vertexai_responses.sh should be updated to clone the latest version of the responses: v13.0

@google-oss-bot
Copy link
Contributor

Size Report 1

Affected Products

  • @firebase/vertexai

    TypeBase (07c75ea)Merge (00ad8d2)Diff
    browser46.7 kB47.0 kB+304 B (+0.7%)
    main47.8 kB48.1 kB+304 B (+0.6%)
    module46.7 kB47.0 kB+304 B (+0.7%)
  • firebase

    TypeBase (07c75ea)Merge (00ad8d2)Diff
    firebase-vertexai.js36.8 kB37.0 kB+231 B (+0.6%)

Test Logs

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

@google-oss-bot
Copy link
Contributor

Size Analysis Report 1

Affected Products

  • @firebase/vertexai

    • getGenerativeModel

      Size

      TypeBase (07c75ea)Merge (00ad8d2)Diff
      size26.8 kB27.0 kB+210 B (+0.8%)
      size-with-ext-deps45.8 kB46.0 kB+210 B (+0.5%)

Test Logs

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

@erikeldridge erikeldridge force-pushed the erikeldridge-vertex-message branch from c22ab66 to e96b992 Compare May 27, 2025 23:00
@erikeldridge erikeldridge changed the base branch from vaihi-exp-google-ai to firebase-ai-hybridinference May 27, 2025 23:00
@erikeldridge erikeldridge changed the title VinF Hybrid Inference: migrate to LanguageModelMessage AI Hybrid Inference: migrate to LanguageModelMessage May 27, 2025
@gsiddh
Copy link

gsiddh commented May 28, 2025

LGTM.

Copy link
Contributor

@visumickey visumickey left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Logically changes LGTM. I lack context on the chrome APIs and what/how are the APIs difference. So, I defer that validation by the well-known!

@erikeldridge erikeldridge merged commit 177f546 into firebase-ai-hybridinference May 28, 2025
2 of 3 checks passed
@erikeldridge erikeldridge deleted the erikeldridge-vertex-message branch May 28, 2025 21:25
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.

4 participants