firebase-js-sdk icon indicating copy to clipboard operation
firebase-js-sdk copied to clipboard

Complete Hybrid inference impl

Open gsiddh opened this issue 7 months ago • 3 comments

Fix languageCode parameter in action_code_url (#8912)

  • Fix languageCode parameter in action_code_url

  • Add changeset

Vaihi add langmodel types. (#8927)

  • Adding LanguageModel types. These are based off https://github.com/webmachinelearning/prompt-api?tab=readme-ov-file#full-api-surface-in-web-idl

  • Adding LanguageModel types.

  • Remove bunch of exports

  • yarn formatted

  • after lint

Define HybridParams (#8935)

Co-authored-by: Erik Eldridge [email protected]

Adding smoke test for new hybrid params (#8937)

  • Adding smoke test for new hybrid params

  • Use the existing name of the model params input


Co-authored-by: Erik Eldridge [email protected]

Moving to in-cloud naming (#8938)

Co-authored-by: Erik Eldridge [email protected]

Moving to string type for the inference mode (#8941)

Define ChromeAdapter class (#8942)

Co-authored-by: Erik Eldridge [email protected]

VinF Hybrid Inference: Implement ChromeAdapter (rebased) (#8943)

Adding count token impl (#8950)

VinF Hybrid Inference #4: ChromeAdapter in stream methods (rebased) (#8949)

Define values for Availability enum (#8951)

VinF Hybrid Inference: narrow Chrome input type (#8953)

Add image inference support (#8954)

  • Adding image based input for inference

  • adding image as input to create language model object

disable count tokens api for on-device inference (#8962)

VinF Hybrid Inference: throw if only_on_device and model is unavailable (#8965)

Hey there! So you want to contribute to a Firebase SDK? Before you file this pull request, please read these guidelines:

Discussion

  • Read the contribution guidelines (CONTRIBUTING.md).
  • If this has been discussed in an issue, make sure to link to the issue here. If not, go file an issue about this before creating a pull request to discuss.

Testing

  • Make sure all existing tests in the repository pass after your change.
  • If you fixed a bug or added a feature, add a new test to cover your code.

API Changes

  • At this time we cannot accept changes that affect the public API. If you'd like to help us make Firebase APIs better, please propose your change in an issue so that we can discuss it together.

gsiddh avatar Apr 23 '25 18:04 gsiddh

🦋 Changeset detected

Latest commit: 07c75ea17d8b97b934a140ef40f85b48f4dc59b5

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

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

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

changeset-bot[bot] avatar Apr 23 '25 18:04 changeset-bot[bot]

Size Report 1

Affected Products

  • @firebase/vertexai

    TypeBase (475c81a)Merge (89d4b73)Diff
    browser41.3 kB45.8 kB+4.50 kB (+10.9%)
    main42.4 kB46.9 kB+4.50 kB (+10.6%)
    module41.3 kB45.8 kB+4.50 kB (+10.9%)
  • firebase

    TypeBase (475c81a)Merge (89d4b73)Diff
    firebase-vertexai.js32.7 kB35.9 kB+3.21 kB (+9.8%)

Test Logs

google-oss-bot avatar Apr 23 '25 18:04 google-oss-bot

Size Analysis Report 1

This report is too large (89,334 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

google-oss-bot avatar Apr 23 '25 18:04 google-oss-bot