Skip to content

Rename @firebase/vertexai package to @firebase/ai #9011

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 39 commits into from
May 12, 2025
Merged

Rename @firebase/vertexai package to @firebase/ai #9011

merged 39 commits into from
May 12, 2025

Conversation

dlarocque
Copy link
Contributor

@dlarocque dlarocque commented May 9, 2025

Builds on changes made in #8931.

Renames the @firebase/vertexai package with @firebase/ai:

  • Changed package name
  • Changed directory name to ai and updated all references of the directory name
  • Added deprecation comments to VertexAI APIs, with suggestions to use the new APIs and link to the migration guide
  • Added a ./vertexai' import alias in packages/firebase/package.json to maintain backwards-compatibility
  • All docs have changed from 'vertexai' to 'ai'

dlarocque and others added 26 commits April 15, 2025 15:03
* [vertexai] Use json of unary-success-citations

The test files have been updated to include `json` extension versions of the tests files. The old, `txt` extension files are deprecated and will be deleted eventually.

* Update also the version used in the update script
Copy link

changeset-bot bot commented May 9, 2025

⚠️ No Changeset found

Latest commit: 5a60ac3

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

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

Click here to learn what changesets are, and how to add one.

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

Copy link
Contributor

github-actions bot commented May 9, 2025

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

google-oss-bot commented May 9, 2025

Size Report 1

Affected Products

  • @firebase/ai

    TypeBase (d5082f9)Merge (ddd21bc)Diff
    browser?42.5 kB? (?)
    main?43.7 kB? (?)
    module?42.5 kB? (?)
  • @firebase/app

    TypeBase (d5082f9)Merge (ddd21bc)Diff
    browser19.5 kB19.5 kB-6 B (-0.0%)
    main20.4 kB20.4 kB-6 B (-0.0%)
    module19.5 kB19.5 kB-6 B (-0.0%)
  • @firebase/database-compat/standalone

    TypeBase (d5082f9)Merge (ddd21bc)Diff
    main366 kB366 kB-6 B (-0.0%)
  • bundle

    46 size changes

    TypeBase (d5082f9)Merge (ddd21bc)Diff
    analytics (logEvent)44.7 kB44.7 kB-6 B (-0.0%)
    app-check (CustomProvider)38.0 kB38.0 kB-6 B (-0.0%)
    app-check (ReCaptchaEnterpriseProvider)40.5 kB40.5 kB-6 B (-0.0%)
    app-check (ReCaptchaV3Provider)40.5 kB40.5 kB-6 B (-0.0%)
    auth (Anonymous)77.8 kB77.8 kB-6 B (-0.0%)
    auth (EmailAndPassword)87.9 kB87.9 kB-6 B (-0.0%)
    auth (GoogleFBTwitterGitHubPopup)105 kB105 kB-6 B (-0.0%)
    auth (GooglePopup)102 kB102 kB-6 B (-0.0%)
    auth (GoogleRedirect)102 kB102 kB-6 B (-0.0%)
    auth (Phone)95.3 kB95.3 kB-6 B (-0.0%)
    database (Append to a list of data)150 kB150 kB-6 B (-0.0%)
    database (Filtering data)149 kB149 kB-6 B (-0.0%)
    database (Listen for child events)165 kB165 kB-6 B (-0.0%)
    database (Listen for value events + Detach listeners)165 kB165 kB-6 B (-0.0%)
    database (Listen for value events)165 kB165 kB-6 B (-0.0%)
    database (Read data once)165 kB165 kB-6 B (-0.0%)
    database (Save data as transactions)167 kB167 kB-6 B (-0.0%)
    database (Sort data)151 kB151 kB-6 B (-0.0%)
    database (Write data)149 kB149 kB-6 B (-0.0%)
    firestore (CSI Auto Indexing Disable and Delete)275 kB275 kB-6 B (-0.0%)
    firestore (CSI Auto Indexing Enable)275 kB275 kB-6 B (-0.0%)
    firestore (Persistence)307 kB307 kB-6 B (-0.0%)
    firestore (Query Cursors)252 kB252 kB-6 B (-0.0%)
    firestore (Query)249 kB249 kB-6 B (-0.0%)
    firestore (Read data once)237 kB237 kB-6 B (-0.0%)
    firestore (Read Write w Persistence)331 kB331 kB-6 B (-0.0%)
    firestore (Realtime updates)239 kB239 kB-6 B (-0.0%)
    firestore (Transaction)216 kB216 kB-6 B (-0.0%)
    firestore (Write data)216 kB216 kB-6 B (-0.0%)
    firestore-lite (Query Cursors)105 kB105 kB-6 B (-0.0%)
    firestore-lite (Query)101 kB101 kB-6 B (-0.0%)
    firestore-lite (Read data once)76.3 kB76.3 kB-6 B (-0.0%)
    firestore-lite (Transaction)102 kB102 kB-6 B (-0.0%)
    firestore-lite (Write data)85.9 kB85.9 kB-6 B (-0.0%)
    functions (call)35.0 kB35.0 kB-6 B (-0.0%)
    messaging (send + receive)47.5 kB47.5 kB-6 B (-0.0%)
    performance (trace)62.4 kB62.4 kB-6 B (-0.0%)
    remote-config (getAndFetch)48.8 kB48.8 kB-6 B (-0.0%)
    storage (getBytes)42.8 kB42.8 kB-6 B (-0.0%)
    storage (getDownloadURL)44.9 kB44.9 kB-6 B (-0.0%)
    storage (getMetadata)44.3 kB44.3 kB-6 B (-0.0%)
    storage (list + listAll)43.8 kB43.8 kB-6 B (-0.0%)
    storage (updateMetadata)44.6 kB44.6 kB-6 B (-0.0%)
    storage (uploadBytes)49.5 kB49.5 kB-6 B (-0.0%)
    storage (uploadBytesResumable)59.4 kB59.4 kB-6 B (-0.0%)
    storage (uploadString)49.7 kB49.7 kB-6 B (-0.0%)

  • firebase

    TypeBase (d5082f9)Merge (ddd21bc)Diff
    firebase-ai.js33.8 kB33.8 kB-6 B (-0.0%)
    firebase-app-compat.js31.8 kB31.8 kB-6 B (-0.0%)
    firebase-app.js103 kB103 kB-6 B (-0.0%)
    firebase-compat.js798 kB798 kB-6 B (-0.0%)
    firebase-performance-standalone-compat.js105 kB105 kB-6 B (-0.0%)
    firebase-vertexai.js33.8 kB33.8 kB-6 B (-0.0%)

Test Logs

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

@google-oss-bot
Copy link
Contributor

google-oss-bot commented May 9, 2025

Size Analysis Report 1

This report is too large (254,124 characters) to be displayed here in a GitHub comment. Please use the below link to see the full report on Google Cloud Storage.

Test Logs

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

@dlarocque dlarocque changed the title [WIP] @firebase/ai package Rename @firebase/vertexai package to @firebase/ai May 9, 2025
@dlarocque dlarocque marked this pull request as ready for review May 9, 2025 19:19
@dlarocque dlarocque requested review from a team as code owners May 9, 2025 19:19
@dlarocque dlarocque requested a review from hsubox76 May 9, 2025 19:19
Copy link
Contributor

@hsubox76 hsubox76 left a comment

Choose a reason for hiding this comment

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

LG so far, add the NPM_TOKEN as discussed from https://docs.google.com/spreadsheets/d/1uKzGybam14ntuO7smZ73vkqvPHNfHGcPD05n_iBNVdw/edit?gid=1892542039#gid=1892542039 (internal link) in

  • canary-deploy.yml
  • prerelease-manual-deploy.yml
  • release-prod.yml
  • release-staging.yml

I will add the token to our Github secrets.

Base automatically changed from dl/genai to main May 12, 2025 19:43
@dlarocque dlarocque requested review from a team as code owners May 12, 2025 19:43
Copy link
Contributor

github-actions bot commented May 12, 2025

Changeset File Check ⚠️

  • Warning: This PR modifies files in the following packages but they have not been included in the changeset file:%0A - @firebase/app%0A%0A Make sure this was intentional.

@dlarocque dlarocque merged commit 39505cc into main May 12, 2025
49 checks passed
@dlarocque dlarocque deleted the dl/ai branch May 12, 2025 20:54
hsubox76 added a commit that referenced this pull request May 13, 2025
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.

5 participants