Skip to content

VinF Hybrid Inference: Implement ChromeAdapter (rebased) #8943

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 29 commits into from
Apr 18, 2025

Conversation

erikeldridge
Copy link

#8932 introduced an internal abstraction called ChromeAdapter that encapsulates logic for detecting Chrome's API and using it for inference. Having agreed that abstraction seems reasonable, this PR implements it.

Replaces #8917 to clarify we're now merging into the new vaihi-exp integration branch.

@erikeldridge erikeldridge requested a review from gsiddh April 16, 2025 23:24
@erikeldridge erikeldridge requested a review from a team as a code owner April 16, 2025 23:24
Copy link

changeset-bot bot commented Apr 16, 2025

⚠️ No Changeset found

Latest commit: 9304e47

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 no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

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

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: v10.0

@erikeldridge erikeldridge force-pushed the erikeldridge-vertex-adapterimpl-rebased branch from 08989cb to d3176c2 Compare April 17, 2025 18:10
@erikeldridge erikeldridge requested a review from a team as a code owner April 17, 2025 18:10
@erikeldridge erikeldridge changed the base branch from erikeldridge-vertex-adapter-rebased to vaihi-exp April 17, 2025 18:11
Copy link

@gsiddh gsiddh left a comment

Choose a reason for hiding this comment

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

Done. All good. Couple of minor nit suggestions

@google-oss-bot
Copy link
Contributor

google-oss-bot commented Apr 17, 2025

Size Report 1

Affected Products

  • @firebase/vertexai

    TypeBase (ff364cd)Merge (96ba156)Diff
    browser35.8 kB37.7 kB+1.98 kB (+5.5%)
    main36.7 kB38.7 kB+1.98 kB (+5.4%)
    module35.8 kB37.7 kB+1.98 kB (+5.5%)
  • firebase

    TypeBase (ff364cd)Merge (96ba156)Diff
    firebase-vertexai.js28.9 kB30.4 kB+1.51 kB (+5.2%)

Test Logs

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

@google-oss-bot
Copy link
Contributor

google-oss-bot commented Apr 17, 2025

Size Analysis Report 1

Affected Products

  • @firebase/vertexai

    • ArraySchema

      Size

      TypeBase (ff364cd)Merge (96ba156)Diff
      size5.50 kB5.67 kB+174 B (+3.2%)
      size-with-ext-deps23.4 kB23.6 kB+177 B (+0.8%)

      Dependency

      TypeBase (ff364cd)Merge (96ba156)Diff
      variables

      18 dependencies

      BlockReason
      DEFAULT_LOCATION
      FinishReason
      FunctionCallingMode
      HarmBlockMethod
      HarmBlockThreshold
      HarmCategory
      HarmProbability
      HarmSeverity
      ImagenAspectRatio
      ImagenPersonFilterLevel
      ImagenSafetyFilterLevel
      Modality
      SchemaType
      Task
      VERTEX_TYPE
      name
      version

      19 dependencies

      Availability
      BlockReason
      DEFAULT_LOCATION
      FinishReason
      FunctionCallingMode
      HarmBlockMethod
      HarmBlockThreshold
      HarmCategory
      HarmProbability
      HarmSeverity
      ImagenAspectRatio
      ImagenPersonFilterLevel
      ImagenSafetyFilterLevel
      Modality
      SchemaType
      Task
      VERTEX_TYPE
      name
      version

      + Availability

    • BlockReason

      Size

      TypeBase (ff364cd)Merge (96ba156)Diff
      size3.41 kB3.58 kB+174 B (+5.1%)
      size-with-ext-deps21.3 kB21.5 kB+177 B (+0.8%)

      Dependency

      TypeBase (ff364cd)Merge (96ba156)Diff
      variables

      18 dependencies

      BlockReason
      DEFAULT_LOCATION
      FinishReason
      FunctionCallingMode
      HarmBlockMethod
      HarmBlockThreshold
      HarmCategory
      HarmProbability
      HarmSeverity
      ImagenAspectRatio
      ImagenPersonFilterLevel
      ImagenSafetyFilterLevel
      Modality
      SchemaType
      Task
      VERTEX_TYPE
      name
      version

      19 dependencies

      Availability
      BlockReason
      DEFAULT_LOCATION
      FinishReason
      FunctionCallingMode
      HarmBlockMethod
      HarmBlockThreshold
      HarmCategory
      HarmProbability
      HarmSeverity
      ImagenAspectRatio
      ImagenPersonFilterLevel
      ImagenSafetyFilterLevel
      Modality
      SchemaType
      Task
      VERTEX_TYPE
      name
      version

      + Availability

    • BooleanSchema

      Size

      TypeBase (ff364cd)Merge (96ba156)Diff
      size5.50 kB5.68 kB+174 B (+3.2%)
      size-with-ext-deps23.4 kB23.6 kB+177 B (+0.8%)

      Dependency

      TypeBase (ff364cd)Merge (96ba156)Diff
      variables

      18 dependencies

      BlockReason
      DEFAULT_LOCATION
      FinishReason
      FunctionCallingMode
      HarmBlockMethod
      HarmBlockThreshold
      HarmCategory
      HarmProbability
      HarmSeverity
      ImagenAspectRatio
      ImagenPersonFilterLevel
      ImagenSafetyFilterLevel
      Modality
      SchemaType
      Task
      VERTEX_TYPE
      name
      version

      19 dependencies

      Availability
      BlockReason
      DEFAULT_LOCATION
      FinishReason
      FunctionCallingMode
      HarmBlockMethod
      HarmBlockThreshold
      HarmCategory
      HarmProbability
      HarmSeverity
      ImagenAspectRatio
      ImagenPersonFilterLevel
      ImagenSafetyFilterLevel
      Modality
      SchemaType
      Task
      VERTEX_TYPE
      name
      version

      + Availability

    • ChatSession

      Size

      TypeBase (ff364cd)Merge (96ba156)Diff
      size16.0 kB16.1 kB+177 B (+1.1%)
      size-with-ext-deps34.9 kB35.1 kB+177 B (+0.5%)

      Dependency

      TypeBase (ff364cd)Merge (96ba156)Diff
      variables

      31 dependencies

      BlockReason
      DEFAULT_API_VERSION
      DEFAULT_BASE_URL
      DEFAULT_FETCH_TIMEOUT_MS
      DEFAULT_LOCATION
      FinishReason
      FunctionCallingMode
      HarmBlockMethod
      HarmBlockThreshold
      HarmCategory
      HarmProbability
      HarmSeverity
      ImagenAspectRatio
      ImagenPersonFilterLevel
      ImagenSafetyFilterLevel
      LANGUAGE_TAG
      Modality
      PACKAGE_VERSION
      POSSIBLE_ROLES
      SILENT_ERROR
      SchemaType
      Task
      VALID_PARTS_PER_ROLE
      VALID_PART_FIELDS
      VALID_PREVIOUS_CONTENT_ROLES
      VERTEX_TYPE
      badFinishReasons
      logger
      name
      responseLineRE
      version

      32 dependencies

      Availability
      BlockReason
      DEFAULT_API_VERSION
      DEFAULT_BASE_URL
      DEFAULT_FETCH_TIMEOUT_MS
      DEFAULT_LOCATION
      FinishReason
      FunctionCallingMode
      HarmBlockMethod
      HarmBlockThreshold
      HarmCategory
      HarmProbability
      HarmSeverity
      ImagenAspectRatio
      ImagenPersonFilterLevel
      ImagenSafetyFilterLevel
      LANGUAGE_TAG
      Modality
      PACKAGE_VERSION
      POSSIBLE_ROLES
      SILENT_ERROR
      SchemaType
      Task
      VALID_PARTS_PER_ROLE
      VALID_PART_FIELDS
      VALID_PREVIOUS_CONTENT_ROLES
      VERTEX_TYPE
      badFinishReasons
      logger
      name
      responseLineRE
      version

      + Availability

    • FinishReason

      Size

      TypeBase (ff364cd)Merge (96ba156)Diff
      size3.41 kB3.58 kB+174 B (+5.1%)
      size-with-ext-deps21.3 kB21.5 kB+177 B (+0.8%)

      Dependency

      TypeBase (ff364cd)Merge (96ba156)Diff
      variables

      18 dependencies

      BlockReason
      DEFAULT_LOCATION
      FinishReason
      FunctionCallingMode
      HarmBlockMethod
      HarmBlockThreshold
      HarmCategory
      HarmProbability
      HarmSeverity
      ImagenAspectRatio
      ImagenPersonFilterLevel
      ImagenSafetyFilterLevel
      Modality
      SchemaType
      Task
      VERTEX_TYPE
      name
      version

      19 dependencies

      Availability
      BlockReason
      DEFAULT_LOCATION
      FinishReason
      FunctionCallingMode
      HarmBlockMethod
      HarmBlockThreshold
      HarmCategory
      HarmProbability
      HarmSeverity
      ImagenAspectRatio
      ImagenPersonFilterLevel
      ImagenSafetyFilterLevel
      Modality
      SchemaType
      Task
      VERTEX_TYPE
      name
      version

      + Availability

    • FunctionCallingMode

      Size

      TypeBase (ff364cd)Merge (96ba156)Diff
      size3.42 kB3.59 kB+174 B (+5.1%)
      size-with-ext-deps21.3 kB21.5 kB+177 B (+0.8%)

      Dependency

      TypeBase (ff364cd)Merge (96ba156)Diff
      variables

      18 dependencies

      BlockReason
      DEFAULT_LOCATION
      FinishReason
      FunctionCallingMode
      HarmBlockMethod
      HarmBlockThreshold
      HarmCategory
      HarmProbability
      HarmSeverity
      ImagenAspectRatio
      ImagenPersonFilterLevel
      ImagenSafetyFilterLevel
      Modality
      SchemaType
      Task
      VERTEX_TYPE
      name
      version

      19 dependencies

      Availability
      BlockReason
      DEFAULT_LOCATION
      FinishReason
      FunctionCallingMode
      HarmBlockMethod
      HarmBlockThreshold
      HarmCategory
      HarmProbability
      HarmSeverity
      ImagenAspectRatio
      ImagenPersonFilterLevel
      ImagenSafetyFilterLevel
      Modality
      SchemaType
      Task
      VERTEX_TYPE
      name
      version

      + Availability

    • GenerativeModel

      Size

      TypeBase (ff364cd)Merge (96ba156)Diff
      size19.2 kB19.4 kB+177 B (+0.9%)
      size-with-ext-deps38.2 kB38.3 kB+177 B (+0.5%)

      Dependency

      TypeBase (ff364cd)Merge (96ba156)Diff
      variables

      31 dependencies

      BlockReason
      DEFAULT_API_VERSION
      DEFAULT_BASE_URL
      DEFAULT_FETCH_TIMEOUT_MS
      DEFAULT_LOCATION
      FinishReason
      FunctionCallingMode
      HarmBlockMethod
      HarmBlockThreshold
      HarmCategory
      HarmProbability
      HarmSeverity
      ImagenAspectRatio
      ImagenPersonFilterLevel
      ImagenSafetyFilterLevel
      LANGUAGE_TAG
      Modality
      PACKAGE_VERSION
      POSSIBLE_ROLES
      SILENT_ERROR
      SchemaType
      Task
      VALID_PARTS_PER_ROLE
      VALID_PART_FIELDS
      VALID_PREVIOUS_CONTENT_ROLES
      VERTEX_TYPE
      badFinishReasons
      logger
      name
      responseLineRE
      version

      32 dependencies

      Availability
      BlockReason
      DEFAULT_API_VERSION
      DEFAULT_BASE_URL
      DEFAULT_FETCH_TIMEOUT_MS
      DEFAULT_LOCATION
      FinishReason
      FunctionCallingMode
      HarmBlockMethod
      HarmBlockThreshold
      HarmCategory
      HarmProbability
      HarmSeverity
      ImagenAspectRatio
      ImagenPersonFilterLevel
      ImagenSafetyFilterLevel
      LANGUAGE_TAG
      Modality
      PACKAGE_VERSION
      POSSIBLE_ROLES
      SILENT_ERROR
      SchemaType
      Task
      VALID_PARTS_PER_ROLE
      VALID_PART_FIELDS
      VALID_PREVIOUS_CONTENT_ROLES
      VERTEX_TYPE
      badFinishReasons
      logger
      name
      responseLineRE
      version

      + Availability

    • HarmBlockMethod

      Size

      TypeBase (ff364cd)Merge (96ba156)Diff
      size3.41 kB3.59 kB+174 B (+5.1%)
      size-with-ext-deps21.3 kB21.5 kB+177 B (+0.8%)

      Dependency

      TypeBase (ff364cd)Merge (96ba156)Diff
      variables

      18 dependencies

      BlockReason
      DEFAULT_LOCATION
      FinishReason
      FunctionCallingMode
      HarmBlockMethod
      HarmBlockThreshold
      HarmCategory
      HarmProbability
      HarmSeverity
      ImagenAspectRatio
      ImagenPersonFilterLevel
      ImagenSafetyFilterLevel
      Modality
      SchemaType
      Task
      VERTEX_TYPE
      name
      version

      19 dependencies

      Availability
      BlockReason
      DEFAULT_LOCATION
      FinishReason
      FunctionCallingMode
      HarmBlockMethod
      HarmBlockThreshold
      HarmCategory
      HarmProbability
      HarmSeverity
      ImagenAspectRatio
      ImagenPersonFilterLevel
      ImagenSafetyFilterLevel
      Modality
      SchemaType
      Task
      VERTEX_TYPE
      name
      version

      + Availability

    • HarmBlockThreshold

      Size

      TypeBase (ff364cd)Merge (96ba156)Diff
      size3.42 kB3.59 kB+174 B (+5.1%)
      size-with-ext-deps21.3 kB21.5 kB+177 B (+0.8%)

      Dependency

      TypeBase (ff364cd)Merge (96ba156)Diff
      variables

      18 dependencies

      BlockReason
      DEFAULT_LOCATION
      FinishReason
      FunctionCallingMode
      HarmBlockMethod
      HarmBlockThreshold
      HarmCategory
      HarmProbability
      HarmSeverity
      ImagenAspectRatio
      ImagenPersonFilterLevel
      ImagenSafetyFilterLevel
      Modality
      SchemaType
      Task
      VERTEX_TYPE
      name
      version

      19 dependencies

      Availability
      BlockReason
      DEFAULT_LOCATION
      FinishReason
      FunctionCallingMode
      HarmBlockMethod
      HarmBlockThreshold
      HarmCategory
      HarmProbability
      HarmSeverity
      ImagenAspectRatio
      ImagenPersonFilterLevel
      ImagenSafetyFilterLevel
      Modality
      SchemaType
      Task
      VERTEX_TYPE
      name
      version

      + Availability

    • HarmCategory

      Size

      TypeBase (ff364cd)Merge (96ba156)Diff
      size3.41 kB3.58 kB+174 B (+5.1%)
      size-with-ext-deps21.3 kB21.5 kB+177 B (+0.8%)

      Dependency

      TypeBase (ff364cd)Merge (96ba156)Diff
      variables

      18 dependencies

      BlockReason
      DEFAULT_LOCATION
      FinishReason
      FunctionCallingMode
      HarmBlockMethod
      HarmBlockThreshold
      HarmCategory
      HarmProbability
      HarmSeverity
      ImagenAspectRatio
      ImagenPersonFilterLevel
      ImagenSafetyFilterLevel
      Modality
      SchemaType
      Task
      VERTEX_TYPE
      name
      version

      19 dependencies

      Availability
      BlockReason
      DEFAULT_LOCATION
      FinishReason
      FunctionCallingMode
      HarmBlockMethod
      HarmBlockThreshold
      HarmCategory
      HarmProbability
      HarmSeverity
      ImagenAspectRatio
      ImagenPersonFilterLevel
      ImagenSafetyFilterLevel
      Modality
      SchemaType
      Task
      VERTEX_TYPE
      name
      version

      + Availability

    • HarmProbability

      Size

      TypeBase (ff364cd)Merge (96ba156)Diff
      size3.41 kB3.59 kB+174 B (+5.1%)
      size-with-ext-deps21.3 kB21.5 kB+177 B (+0.8%)

      Dependency

      TypeBase (ff364cd)Merge (96ba156)Diff
      variables

      18 dependencies

      BlockReason
      DEFAULT_LOCATION
      FinishReason
      FunctionCallingMode
      HarmBlockMethod
      HarmBlockThreshold
      HarmCategory
      HarmProbability
      HarmSeverity
      ImagenAspectRatio
      ImagenPersonFilterLevel
      ImagenSafetyFilterLevel
      Modality
      SchemaType
      Task
      VERTEX_TYPE
      name
      version

      19 dependencies

      Availability
      BlockReason
      DEFAULT_LOCATION
      FinishReason
      FunctionCallingMode
      HarmBlockMethod
      HarmBlockThreshold
      HarmCategory
      HarmProbability
      HarmSeverity
      ImagenAspectRatio
      ImagenPersonFilterLevel
      ImagenSafetyFilterLevel
      Modality
      SchemaType
      Task
      VERTEX_TYPE
      name
      version

      + Availability

    • HarmSeverity

      Size

      TypeBase (ff364cd)Merge (96ba156)Diff
      size3.41 kB3.58 kB+174 B (+5.1%)
      size-with-ext-deps21.3 kB21.5 kB+177 B (+0.8%)

      Dependency

      TypeBase (ff364cd)Merge (96ba156)Diff
      variables

      18 dependencies

      BlockReason
      DEFAULT_LOCATION
      FinishReason
      FunctionCallingMode
      HarmBlockMethod
      HarmBlockThreshold
      HarmCategory
      HarmProbability
      HarmSeverity
      ImagenAspectRatio
      ImagenPersonFilterLevel
      ImagenSafetyFilterLevel
      Modality
      SchemaType
      Task
      VERTEX_TYPE
      name
      version

      19 dependencies

      Availability
      BlockReason
      DEFAULT_LOCATION
      FinishReason
      FunctionCallingMode
      HarmBlockMethod
      HarmBlockThreshold
      HarmCategory
      HarmProbability
      HarmSeverity
      ImagenAspectRatio
      ImagenPersonFilterLevel
      ImagenSafetyFilterLevel
      Modality
      SchemaType
      Task
      VERTEX_TYPE
      name
      version

      + Availability

    • ImagenAspectRatio

      Size

      TypeBase (ff364cd)Merge (96ba156)Diff
      size3.42 kB3.59 kB+174 B (+5.1%)
      size-with-ext-deps21.3 kB21.5 kB+177 B (+0.8%)

      Dependency

      TypeBase (ff364cd)Merge (96ba156)Diff
      variables

      18 dependencies

      BlockReason
      DEFAULT_LOCATION
      FinishReason
      FunctionCallingMode
      HarmBlockMethod
      HarmBlockThreshold
      HarmCategory
      HarmProbability
      HarmSeverity
      ImagenAspectRatio
      ImagenPersonFilterLevel
      ImagenSafetyFilterLevel
      Modality
      SchemaType
      Task
      VERTEX_TYPE
      name
      version

      19 dependencies

      Availability
      BlockReason
      DEFAULT_LOCATION
      FinishReason
      FunctionCallingMode
      HarmBlockMethod
      HarmBlockThreshold
      HarmCategory
      HarmProbability
      HarmSeverity
      ImagenAspectRatio
      ImagenPersonFilterLevel
      ImagenSafetyFilterLevel
      Modality
      SchemaType
      Task
      VERTEX_TYPE
      name
      version

      + Availability

    • ImagenImageFormat

      Size

      TypeBase (ff364cd)Merge (96ba156)Diff
      size3.70 kB3.87 kB+174 B (+4.7%)
      size-with-ext-deps21.6 kB21.8 kB+177 B (+0.8%)

      Dependency

      TypeBase (ff364cd)Merge (96ba156)Diff
      variables

      19 dependencies

      BlockReason
      DEFAULT_LOCATION
      FinishReason
      FunctionCallingMode
      HarmBlockMethod
      HarmBlockThreshold
      HarmCategory
      HarmProbability
      HarmSeverity
      ImagenAspectRatio
      ImagenPersonFilterLevel
      ImagenSafetyFilterLevel
      Modality
      SchemaType
      Task
      VERTEX_TYPE
      logger
      name
      version

      20 dependencies

      Availability
      BlockReason
      DEFAULT_LOCATION
      FinishReason
      FunctionCallingMode
      HarmBlockMethod
      HarmBlockThreshold
      HarmCategory
      HarmProbability
      HarmSeverity
      ImagenAspectRatio
      ImagenPersonFilterLevel
      ImagenSafetyFilterLevel
      Modality
      SchemaType
      Task
      VERTEX_TYPE
      logger
      name
      version

      + Availability

    • ImagenModel

      Size

      TypeBase (ff364cd)Merge (96ba156)Diff
      size20.9 kB21.1 kB+177 B (+0.8%)
      size-with-ext-deps39.9 kB40.1 kB+177 B (+0.4%)

      Dependency

      TypeBase (ff364cd)Merge (96ba156)Diff
      variables

      31 dependencies

      BlockReason
      DEFAULT_API_VERSION
      DEFAULT_BASE_URL
      DEFAULT_FETCH_TIMEOUT_MS
      DEFAULT_LOCATION
      FinishReason
      FunctionCallingMode
      HarmBlockMethod
      HarmBlockThreshold
      HarmCategory
      HarmProbability
      HarmSeverity
      ImagenAspectRatio
      ImagenPersonFilterLevel
      ImagenSafetyFilterLevel
      LANGUAGE_TAG
      Modality
      PACKAGE_VERSION
      POSSIBLE_ROLES
      SILENT_ERROR
      SchemaType
      Task
      VALID_PARTS_PER_ROLE
      VALID_PART_FIELDS
      VALID_PREVIOUS_CONTENT_ROLES
      VERTEX_TYPE
      badFinishReasons
      logger
      name
      responseLineRE
      version

      32 dependencies

      Availability
      BlockReason
      DEFAULT_API_VERSION
      DEFAULT_BASE_URL
      DEFAULT_FETCH_TIMEOUT_MS
      DEFAULT_LOCATION
      FinishReason
      FunctionCallingMode
      HarmBlockMethod
      HarmBlockThreshold
      HarmCategory
      HarmProbability
      HarmSeverity
      ImagenAspectRatio
      ImagenPersonFilterLevel
      ImagenSafetyFilterLevel
      LANGUAGE_TAG
      Modality
      PACKAGE_VERSION
      POSSIBLE_ROLES
      SILENT_ERROR
      SchemaType
      Task
      VALID_PARTS_PER_ROLE
      VALID_PART_FIELDS
      VALID_PREVIOUS_CONTENT_ROLES
      VERTEX_TYPE
      badFinishReasons
      logger
      name
      responseLineRE
      version

      + Availability

    • ImagenPersonFilterLevel

      Size

      TypeBase (ff364cd)Merge (96ba156)Diff
      size3.42 kB3.60 kB+174 B (+5.1%)
      size-with-ext-deps21.3 kB21.5 kB+177 B (+0.8%)

      Dependency

      TypeBase (ff364cd)Merge (96ba156)Diff
      variables

      18 dependencies

      BlockReason
      DEFAULT_LOCATION
      FinishReason
      FunctionCallingMode
      HarmBlockMethod
      HarmBlockThreshold
      HarmCategory
      HarmProbability
      HarmSeverity
      ImagenAspectRatio
      ImagenPersonFilterLevel
      ImagenSafetyFilterLevel
      Modality
      SchemaType
      Task
      VERTEX_TYPE
      name
      version

      19 dependencies

      Availability
      BlockReason
      DEFAULT_LOCATION
      FinishReason
      FunctionCallingMode
      HarmBlockMethod
      HarmBlockThreshold
      HarmCategory
      HarmProbability
      HarmSeverity
      ImagenAspectRatio
      ImagenPersonFilterLevel
      ImagenSafetyFilterLevel
      Modality
      SchemaType
      Task
      VERTEX_TYPE
      name
      version

      + Availability

    • ImagenSafetyFilterLevel

      Size

      TypeBase (ff364cd)Merge (96ba156)Diff
      size3.42 kB3.60 kB+174 B (+5.1%)
      size-with-ext-deps21.3 kB21.5 kB+177 B (+0.8%)

      Dependency

      TypeBase (ff364cd)Merge (96ba156)Diff
      variables

      18 dependencies

      BlockReason
      DEFAULT_LOCATION
      FinishReason
      FunctionCallingMode
      HarmBlockMethod
      HarmBlockThreshold
      HarmCategory
      HarmProbability
      HarmSeverity
      ImagenAspectRatio
      ImagenPersonFilterLevel
      ImagenSafetyFilterLevel
      Modality
      SchemaType
      Task
      VERTEX_TYPE
      name
      version

      19 dependencies

      Availability
      BlockReason
      DEFAULT_LOCATION
      FinishReason
      FunctionCallingMode
      HarmBlockMethod
      HarmBlockThreshold
      HarmCategory
      HarmProbability
      HarmSeverity
      ImagenAspectRatio
      ImagenPersonFilterLevel
      ImagenSafetyFilterLevel
      Modality
      SchemaType
      Task
      VERTEX_TYPE
      name
      version

      + Availability

    • IntegerSchema

      Size

      TypeBase (ff364cd)Merge (96ba156)Diff
      size5.50 kB5.68 kB+174 B (+3.2%)
      size-with-ext-deps23.4 kB23.6 kB+177 B (+0.8%)

      Dependency

      TypeBase (ff364cd)Merge (96ba156)Diff
      variables

      18 dependencies

      BlockReason
      DEFAULT_LOCATION
      FinishReason
      FunctionCallingMode
      HarmBlockMethod
      HarmBlockThreshold
      HarmCategory
      HarmProbability
      HarmSeverity
      ImagenAspectRatio
      ImagenPersonFilterLevel
      ImagenSafetyFilterLevel
      Modality
      SchemaType
      Task
      VERTEX_TYPE
      name
      version

      19 dependencies

      Availability
      BlockReason
      DEFAULT_LOCATION
      FinishReason
      FunctionCallingMode
      HarmBlockMethod
      HarmBlockThreshold
      HarmCategory
      HarmProbability
      HarmSeverity
      ImagenAspectRatio
      ImagenPersonFilterLevel
      ImagenSafetyFilterLevel
      Modality
      SchemaType
      Task
      VERTEX_TYPE
      name
      version

      + Availability

    • Modality

      Size

      TypeBase (ff364cd)Merge (96ba156)Diff
      size3.41 kB3.58 kB+174 B (+5.1%)
      size-with-ext-deps21.3 kB21.5 kB+177 B (+0.8%)

      Dependency

      TypeBase (ff364cd)Merge (96ba156)Diff
      variables

      18 dependencies

      BlockReason
      DEFAULT_LOCATION
      FinishReason
      FunctionCallingMode
      HarmBlockMethod
      HarmBlockThreshold
      HarmCategory
      HarmProbability
      HarmSeverity
      ImagenAspectRatio
      ImagenPersonFilterLevel
      ImagenSafetyFilterLevel
      Modality
      SchemaType
      Task
      VERTEX_TYPE
      name
      version

      19 dependencies

      Availability
      BlockReason
      DEFAULT_LOCATION
      FinishReason
      FunctionCallingMode
      HarmBlockMethod
      HarmBlockThreshold
      HarmCategory
      HarmProbability
      HarmSeverity
      ImagenAspectRatio
      ImagenPersonFilterLevel
      ImagenSafetyFilterLevel
      Modality
      SchemaType
      Task
      VERTEX_TYPE
      name
      version

      + Availability

    • NumberSchema

      Size

      TypeBase (ff364cd)Merge (96ba156)Diff
      size5.50 kB5.67 kB+174 B (+3.2%)
      size-with-ext-deps23.4 kB23.6 kB+177 B (+0.8%)

      Dependency

      TypeBase (ff364cd)Merge (96ba156)Diff
      variables

      18 dependencies

      BlockReason
      DEFAULT_LOCATION
      FinishReason
      FunctionCallingMode
      HarmBlockMethod
      HarmBlockThreshold
      HarmCategory
      HarmProbability
      HarmSeverity
      ImagenAspectRatio
      ImagenPersonFilterLevel
      ImagenSafetyFilterLevel
      Modality
      SchemaType
      Task
      VERTEX_TYPE
      name
      version

      19 dependencies

      Availability
      BlockReason
      DEFAULT_LOCATION
      FinishReason
      FunctionCallingMode
      HarmBlockMethod
      HarmBlockThreshold
      HarmCategory
      HarmProbability
      HarmSeverity
      ImagenAspectRatio
      ImagenPersonFilterLevel
      ImagenSafetyFilterLevel
      Modality
      SchemaType
      Task
      VERTEX_TYPE
      name
      version

      + Availability

    • ObjectSchema

      Size

      TypeBase (ff364cd)Merge (96ba156)Diff
      size5.50 kB5.67 kB+174 B (+3.2%)
      size-with-ext-deps23.4 kB23.6 kB+177 B (+0.8%)

      Dependency

      TypeBase (ff364cd)Merge (96ba156)Diff
      variables

      18 dependencies

      BlockReason
      DEFAULT_LOCATION
      FinishReason
      FunctionCallingMode
      HarmBlockMethod
      HarmBlockThreshold
      HarmCategory
      HarmProbability
      HarmSeverity
      ImagenAspectRatio
      ImagenPersonFilterLevel
      ImagenSafetyFilterLevel
      Modality
      SchemaType
      Task
      VERTEX_TYPE
      name
      version

      19 dependencies

      Availability
      BlockReason
      DEFAULT_LOCATION
      FinishReason
      FunctionCallingMode
      HarmBlockMethod
      HarmBlockThreshold
      HarmCategory
      HarmProbability
      HarmSeverity
      ImagenAspectRatio
      ImagenPersonFilterLevel
      ImagenSafetyFilterLevel
      Modality
      SchemaType
      Task
      VERTEX_TYPE
      name
      version

      + Availability

    • POSSIBLE_ROLES

      Size

      TypeBase (ff364cd)Merge (96ba156)Diff
      size3.46 kB3.63 kB+174 B (+5.0%)
      size-with-ext-deps21.4 kB21.5 kB+177 B (+0.8%)

      Dependency

      TypeBase (ff364cd)Merge (96ba156)Diff
      variables

      19 dependencies

      BlockReason
      DEFAULT_LOCATION
      FinishReason
      FunctionCallingMode
      HarmBlockMethod
      HarmBlockThreshold
      HarmCategory
      HarmProbability
      HarmSeverity
      ImagenAspectRatio
      ImagenPersonFilterLevel
      ImagenSafetyFilterLevel
      Modality
      POSSIBLE_ROLES
      SchemaType
      Task
      VERTEX_TYPE
      name
      version

      20 dependencies

      Availability
      BlockReason
      DEFAULT_LOCATION
      FinishReason
      FunctionCallingMode
      HarmBlockMethod
      HarmBlockThreshold
      HarmCategory
      HarmProbability
      HarmSeverity
      ImagenAspectRatio
      ImagenPersonFilterLevel
      ImagenSafetyFilterLevel
      Modality
      POSSIBLE_ROLES
      SchemaType
      Task
      VERTEX_TYPE
      name
      version

      + Availability

    • Schema

      Size

      TypeBase (ff364cd)Merge (96ba156)Diff
      size5.49 kB5.67 kB+174 B (+3.2%)
      size-with-ext-deps23.4 kB23.6 kB+177 B (+0.8%)

      Dependency

      TypeBase (ff364cd)Merge (96ba156)Diff
      variables

      18 dependencies

      BlockReason
      DEFAULT_LOCATION
      FinishReason
      FunctionCallingMode
      HarmBlockMethod
      HarmBlockThreshold
      HarmCategory
      HarmProbability
      HarmSeverity
      ImagenAspectRatio
      ImagenPersonFilterLevel
      ImagenSafetyFilterLevel
      Modality
      SchemaType
      Task
      VERTEX_TYPE
      name
      version

      19 dependencies

      Availability
      BlockReason
      DEFAULT_LOCATION
      FinishReason
      FunctionCallingMode
      HarmBlockMethod
      HarmBlockThreshold
      HarmCategory
      HarmProbability
      HarmSeverity
      ImagenAspectRatio
      ImagenPersonFilterLevel
      ImagenSafetyFilterLevel
      Modality
      SchemaType
      Task
      VERTEX_TYPE
      name
      version

      + Availability

    • SchemaType

      Size

      TypeBase (ff364cd)Merge (96ba156)Diff
      size3.41 kB3.58 kB+174 B (+5.1%)
      size-with-ext-deps21.3 kB21.5 kB+177 B (+0.8%)

      Dependency

      TypeBase (ff364cd)Merge (96ba156)Diff
      variables

      18 dependencies

      BlockReason
      DEFAULT_LOCATION
      FinishReason
      FunctionCallingMode
      HarmBlockMethod
      HarmBlockThreshold
      HarmCategory
      HarmProbability
      HarmSeverity
      ImagenAspectRatio
      ImagenPersonFilterLevel
      ImagenSafetyFilterLevel
      Modality
      SchemaType
      Task
      VERTEX_TYPE
      name
      version

      19 dependencies

      Availability
      BlockReason
      DEFAULT_LOCATION
      FinishReason
      FunctionCallingMode
      HarmBlockMethod
      HarmBlockThreshold
      HarmCategory
      HarmProbability
      HarmSeverity
      ImagenAspectRatio
      ImagenPersonFilterLevel
      ImagenSafetyFilterLevel
      Modality
      SchemaType
      Task
      VERTEX_TYPE
      name
      version

      + Availability

    • StringSchema

      Size

      TypeBase (ff364cd)Merge (96ba156)Diff
      size5.50 kB5.67 kB+174 B (+3.2%)
      size-with-ext-deps23.4 kB23.6 kB+177 B (+0.8%)

      Dependency

      TypeBase (ff364cd)Merge (96ba156)Diff
      variables

      18 dependencies

      BlockReason
      DEFAULT_LOCATION
      FinishReason
      FunctionCallingMode
      HarmBlockMethod
      HarmBlockThreshold
      HarmCategory
      HarmProbability
      HarmSeverity
      ImagenAspectRatio
      ImagenPersonFilterLevel
      ImagenSafetyFilterLevel
      Modality
      SchemaType
      Task
      VERTEX_TYPE
      name
      version

      19 dependencies

      Availability
      BlockReason
      DEFAULT_LOCATION
      FinishReason
      FunctionCallingMode
      HarmBlockMethod
      HarmBlockThreshold
      HarmCategory
      HarmProbability
      HarmSeverity
      ImagenAspectRatio
      ImagenPersonFilterLevel
      ImagenSafetyFilterLevel
      Modality
      SchemaType
      Task
      VERTEX_TYPE
      name
      version

      + Availability

    • VertexAIError

      Size

      TypeBase (ff364cd)Merge (96ba156)Diff
      size3.72 kB3.89 kB+174 B (+4.7%)
      size-with-ext-deps21.6 kB21.8 kB+177 B (+0.8%)

      Dependency

      TypeBase (ff364cd)Merge (96ba156)Diff
      variables

      18 dependencies

      BlockReason
      DEFAULT_LOCATION
      FinishReason
      FunctionCallingMode
      HarmBlockMethod
      HarmBlockThreshold
      HarmCategory
      HarmProbability
      HarmSeverity
      ImagenAspectRatio
      ImagenPersonFilterLevel
      ImagenSafetyFilterLevel
      Modality
      SchemaType
      Task
      VERTEX_TYPE
      name
      version

      19 dependencies

      Availability
      BlockReason
      DEFAULT_LOCATION
      FinishReason
      FunctionCallingMode
      HarmBlockMethod
      HarmBlockThreshold
      HarmCategory
      HarmProbability
      HarmSeverity
      ImagenAspectRatio
      ImagenPersonFilterLevel
      ImagenSafetyFilterLevel
      Modality
      SchemaType
      Task
      VERTEX_TYPE
      name
      version

      + Availability

    • VertexAIModel

      Size

      TypeBase (ff364cd)Merge (96ba156)Diff
      size19.2 kB19.4 kB+177 B (+0.9%)
      size-with-ext-deps38.2 kB38.3 kB+177 B (+0.5%)

      Dependency

      TypeBase (ff364cd)Merge (96ba156)Diff
      variables

      31 dependencies

      BlockReason
      DEFAULT_API_VERSION
      DEFAULT_BASE_URL
      DEFAULT_FETCH_TIMEOUT_MS
      DEFAULT_LOCATION
      FinishReason
      FunctionCallingMode
      HarmBlockMethod
      HarmBlockThreshold
      HarmCategory
      HarmProbability
      HarmSeverity
      ImagenAspectRatio
      ImagenPersonFilterLevel
      ImagenSafetyFilterLevel
      LANGUAGE_TAG
      Modality
      PACKAGE_VERSION
      POSSIBLE_ROLES
      SILENT_ERROR
      SchemaType
      Task
      VALID_PARTS_PER_ROLE
      VALID_PART_FIELDS
      VALID_PREVIOUS_CONTENT_ROLES
      VERTEX_TYPE
      badFinishReasons
      logger
      name
      responseLineRE
      version

      32 dependencies

      Availability
      BlockReason
      DEFAULT_API_VERSION
      DEFAULT_BASE_URL
      DEFAULT_FETCH_TIMEOUT_MS
      DEFAULT_LOCATION
      FinishReason
      FunctionCallingMode
      HarmBlockMethod
      HarmBlockThreshold
      HarmCategory
      HarmProbability
      HarmSeverity
      ImagenAspectRatio
      ImagenPersonFilterLevel
      ImagenSafetyFilterLevel
      LANGUAGE_TAG
      Modality
      PACKAGE_VERSION
      POSSIBLE_ROLES
      SILENT_ERROR
      SchemaType
      Task
      VALID_PARTS_PER_ROLE
      VALID_PART_FIELDS
      VALID_PREVIOUS_CONTENT_ROLES
      VERTEX_TYPE
      badFinishReasons
      logger
      name
      responseLineRE
      version

      + Availability

    • getGenerativeModel

      Size

      TypeBase (ff364cd)Merge (96ba156)Diff
      size19.7 kB21.2 kB+1.57 kB (+8.0%)
      size-with-ext-deps38.7 kB40.2 kB+1.57 kB (+4.0%)

      Dependency

      TypeBase (ff364cd)Merge (96ba156)Diff
      variables

      31 dependencies

      BlockReason
      DEFAULT_API_VERSION
      DEFAULT_BASE_URL
      DEFAULT_FETCH_TIMEOUT_MS
      DEFAULT_LOCATION
      FinishReason
      FunctionCallingMode
      HarmBlockMethod
      HarmBlockThreshold
      HarmCategory
      HarmProbability
      HarmSeverity
      ImagenAspectRatio
      ImagenPersonFilterLevel
      ImagenSafetyFilterLevel
      LANGUAGE_TAG
      Modality
      PACKAGE_VERSION
      POSSIBLE_ROLES
      SILENT_ERROR
      SchemaType
      Task
      VALID_PARTS_PER_ROLE
      VALID_PART_FIELDS
      VALID_PREVIOUS_CONTENT_ROLES
      VERTEX_TYPE
      badFinishReasons
      logger
      name
      responseLineRE
      version

      32 dependencies

      Availability
      BlockReason
      DEFAULT_API_VERSION
      DEFAULT_BASE_URL
      DEFAULT_FETCH_TIMEOUT_MS
      DEFAULT_LOCATION
      FinishReason
      FunctionCallingMode
      HarmBlockMethod
      HarmBlockThreshold
      HarmCategory
      HarmProbability
      HarmSeverity
      ImagenAspectRatio
      ImagenPersonFilterLevel
      ImagenSafetyFilterLevel
      LANGUAGE_TAG
      Modality
      PACKAGE_VERSION
      POSSIBLE_ROLES
      SILENT_ERROR
      SchemaType
      Task
      VALID_PARTS_PER_ROLE
      VALID_PART_FIELDS
      VALID_PREVIOUS_CONTENT_ROLES
      VERTEX_TYPE
      badFinishReasons
      logger
      name
      responseLineRE
      version

      + Availability

    • getImagenModel

      Size

      TypeBase (ff364cd)Merge (96ba156)Diff
      size21.1 kB21.3 kB+177 B (+0.8%)
      size-with-ext-deps40.1 kB40.3 kB+177 B (+0.4%)

      Dependency

      TypeBase (ff364cd)Merge (96ba156)Diff
      variables

      31 dependencies

      BlockReason
      DEFAULT_API_VERSION
      DEFAULT_BASE_URL
      DEFAULT_FETCH_TIMEOUT_MS
      DEFAULT_LOCATION
      FinishReason
      FunctionCallingMode
      HarmBlockMethod
      HarmBlockThreshold
      HarmCategory
      HarmProbability
      HarmSeverity
      ImagenAspectRatio
      ImagenPersonFilterLevel
      ImagenSafetyFilterLevel
      LANGUAGE_TAG
      Modality
      PACKAGE_VERSION
      POSSIBLE_ROLES
      SILENT_ERROR
      SchemaType
      Task
      VALID_PARTS_PER_ROLE
      VALID_PART_FIELDS
      VALID_PREVIOUS_CONTENT_ROLES
      VERTEX_TYPE
      badFinishReasons
      logger
      name
      responseLineRE
      version

      32 dependencies

      Availability
      BlockReason
      DEFAULT_API_VERSION
      DEFAULT_BASE_URL
      DEFAULT_FETCH_TIMEOUT_MS
      DEFAULT_LOCATION
      FinishReason
      FunctionCallingMode
      HarmBlockMethod
      HarmBlockThreshold
      HarmCategory
      HarmProbability
      HarmSeverity
      ImagenAspectRatio
      ImagenPersonFilterLevel
      ImagenSafetyFilterLevel
      LANGUAGE_TAG
      Modality
      PACKAGE_VERSION
      POSSIBLE_ROLES
      SILENT_ERROR
      SchemaType
      Task
      VALID_PARTS_PER_ROLE
      VALID_PART_FIELDS
      VALID_PREVIOUS_CONTENT_ROLES
      VERTEX_TYPE
      badFinishReasons
      logger
      name
      responseLineRE
      version

      + Availability

    • getVertexAI

      Size

      TypeBase (ff364cd)Merge (96ba156)Diff
      size3.59 kB3.76 kB+174 B (+4.8%)
      size-with-ext-deps28.8 kB29.0 kB+177 B (+0.6%)

      Dependency

      TypeBase (ff364cd)Merge (96ba156)Diff
      variables

      18 dependencies

      BlockReason
      DEFAULT_LOCATION
      FinishReason
      FunctionCallingMode
      HarmBlockMethod
      HarmBlockThreshold
      HarmCategory
      HarmProbability
      HarmSeverity
      ImagenAspectRatio
      ImagenPersonFilterLevel
      ImagenSafetyFilterLevel
      Modality
      SchemaType
      Task
      VERTEX_TYPE
      name
      version

      19 dependencies

      Availability
      BlockReason
      DEFAULT_LOCATION
      FinishReason
      FunctionCallingMode
      HarmBlockMethod
      HarmBlockThreshold
      HarmCategory
      HarmProbability
      HarmSeverity
      ImagenAspectRatio
      ImagenPersonFilterLevel
      ImagenSafetyFilterLevel
      Modality
      SchemaType
      Task
      VERTEX_TYPE
      name
      version

      + Availability

Test Logs

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

@erikeldridge erikeldridge merged commit 02c4ba7 into vaihi-exp Apr 18, 2025
33 of 45 checks passed
@erikeldridge erikeldridge deleted the erikeldridge-vertex-adapterimpl-rebased branch April 18, 2025 01:05
gsiddh pushed a commit that referenced this pull request Apr 23, 2025
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)
gsiddh pushed a commit that referenced this pull request Apr 23, 2025
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)
gsiddh pushed a commit that referenced this pull request Apr 23, 2025
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)
gsiddh pushed a commit that referenced this pull request Apr 23, 2025
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)
gsiddh pushed a commit that referenced this pull request Apr 23, 2025
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)
gsiddh pushed a commit that referenced this pull request Apr 23, 2025
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)
gsiddh pushed a commit that referenced this pull request Apr 23, 2025
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)
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