Skip to content
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

Add support for token-based usage metrics. #8757

Open
wants to merge 11 commits into
base: main
Choose a base branch
from

Conversation

rlazo
Copy link

@rlazo rlazo commented Feb 4, 2025

Token measurement is broken down by modaliy, with separate counters for image, audio, etc.

Tests are in version 6.*, so this change also includes bumping update_responses.sh

rlazo added 2 commits February 4, 2025 11:47
Token measurement is broken down by modaliy, with separate counters for image, audio, etc.

Tests are in version 6.*, so this change also includes bumping update_responses.sh
@rlazo rlazo requested a review from a team as a code owner February 4, 2025 18:56
Copy link

changeset-bot bot commented Feb 4, 2025

🦋 Changeset detected

Latest commit: ddb1a9a

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

This PR includes changesets to release 2 packages
Name Type
@firebase/vertexai Minor
firebase 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

@rlazo rlazo requested review from hsubox76 and dlarocque February 4, 2025 18:56
@google-oss-bot
Copy link
Contributor

google-oss-bot commented Feb 4, 2025

Size Report 1

Affected Products

  • @firebase/vertexai

    TypeBase (3418ef8)Merge (5f82c0f)Diff
    browser29.0 kB29.3 kB+259 B (+0.9%)
    main29.9 kB30.1 kB+277 B (+0.9%)
    module29.0 kB29.3 kB+259 B (+0.9%)
  • firebase

    TypeBase (3418ef8)Merge (5f82c0f)Diff
    firebase-vertexai.js24.2 kB24.4 kB+170 B (+0.7%)

Test Logs

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

@google-oss-bot
Copy link
Contributor

google-oss-bot commented Feb 4, 2025

Size Analysis Report 1

Affected Products

  • @firebase/vertexai

    • ArraySchema

      Size

      TypeBase (3418ef8)Merge (5f82c0f)Diff
      size4.61 kB4.79 kB+180 B (+3.9%)
      size-with-ext-deps22.5 kB22.7 kB+183 B (+0.8%)

      Dependency

      TypeBase (3418ef8)Merge (5f82c0f)Diff
      variables

      14 dependencies

      BlockReason
      DEFAULT_LOCATION
      FinishReason
      FunctionCallingMode
      HarmBlockMethod
      HarmBlockThreshold
      HarmCategory
      HarmProbability
      HarmSeverity
      SchemaType
      Task
      VERTEX_TYPE
      name
      version

      15 dependencies

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

      + Modality

    • BlockReason

      Size

      TypeBase (3418ef8)Merge (5f82c0f)Diff
      size2.52 kB2.70 kB+180 B (+7.1%)
      size-with-ext-deps20.4 kB20.6 kB+183 B (+0.9%)

      Dependency

      TypeBase (3418ef8)Merge (5f82c0f)Diff
      variables

      14 dependencies

      BlockReason
      DEFAULT_LOCATION
      FinishReason
      FunctionCallingMode
      HarmBlockMethod
      HarmBlockThreshold
      HarmCategory
      HarmProbability
      HarmSeverity
      SchemaType
      Task
      VERTEX_TYPE
      name
      version

      15 dependencies

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

      + Modality

    • BooleanSchema

      Size

      TypeBase (3418ef8)Merge (5f82c0f)Diff
      size4.61 kB4.79 kB+180 B (+3.9%)
      size-with-ext-deps22.5 kB22.7 kB+183 B (+0.8%)

      Dependency

      TypeBase (3418ef8)Merge (5f82c0f)Diff
      variables

      14 dependencies

      BlockReason
      DEFAULT_LOCATION
      FinishReason
      FunctionCallingMode
      HarmBlockMethod
      HarmBlockThreshold
      HarmCategory
      HarmProbability
      HarmSeverity
      SchemaType
      Task
      VERTEX_TYPE
      name
      version

      15 dependencies

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

      + Modality

    • ChatSession

      Size

      TypeBase (3418ef8)Merge (5f82c0f)Diff
      size14.6 kB14.8 kB+182 B (+1.2%)
      size-with-ext-deps33.5 kB33.7 kB+183 B (+0.5%)

      Dependency

      TypeBase (3418ef8)Merge (5f82c0f)Diff
      variables

      27 dependencies

      BlockReason
      DEFAULT_API_VERSION
      DEFAULT_BASE_URL
      DEFAULT_FETCH_TIMEOUT_MS
      DEFAULT_LOCATION
      FinishReason
      FunctionCallingMode
      HarmBlockMethod
      HarmBlockThreshold
      HarmCategory
      HarmProbability
      HarmSeverity
      LANGUAGE_TAG
      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

      28 dependencies

      BlockReason
      DEFAULT_API_VERSION
      DEFAULT_BASE_URL
      DEFAULT_FETCH_TIMEOUT_MS
      DEFAULT_LOCATION
      FinishReason
      FunctionCallingMode
      HarmBlockMethod
      HarmBlockThreshold
      HarmCategory
      HarmProbability
      HarmSeverity
      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

      + Modality

    • FinishReason

      Size

      TypeBase (3418ef8)Merge (5f82c0f)Diff
      size2.52 kB2.70 kB+180 B (+7.1%)
      size-with-ext-deps20.4 kB20.6 kB+183 B (+0.9%)

      Dependency

      TypeBase (3418ef8)Merge (5f82c0f)Diff
      variables

      14 dependencies

      BlockReason
      DEFAULT_LOCATION
      FinishReason
      FunctionCallingMode
      HarmBlockMethod
      HarmBlockThreshold
      HarmCategory
      HarmProbability
      HarmSeverity
      SchemaType
      Task
      VERTEX_TYPE
      name
      version

      15 dependencies

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

      + Modality

    • FunctionCallingMode

      Size

      TypeBase (3418ef8)Merge (5f82c0f)Diff
      size2.53 kB2.71 kB+180 B (+7.1%)
      size-with-ext-deps20.4 kB20.6 kB+183 B (+0.9%)

      Dependency

      TypeBase (3418ef8)Merge (5f82c0f)Diff
      variables

      14 dependencies

      BlockReason
      DEFAULT_LOCATION
      FinishReason
      FunctionCallingMode
      HarmBlockMethod
      HarmBlockThreshold
      HarmCategory
      HarmProbability
      HarmSeverity
      SchemaType
      Task
      VERTEX_TYPE
      name
      version

      15 dependencies

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

      + Modality

    • GenerativeModel

      Size

      TypeBase (3418ef8)Merge (5f82c0f)Diff
      size17.3 kB17.5 kB+182 B (+1.1%)
      size-with-ext-deps36.3 kB36.5 kB+183 B (+0.5%)

      Dependency

      TypeBase (3418ef8)Merge (5f82c0f)Diff
      variables

      27 dependencies

      BlockReason
      DEFAULT_API_VERSION
      DEFAULT_BASE_URL
      DEFAULT_FETCH_TIMEOUT_MS
      DEFAULT_LOCATION
      FinishReason
      FunctionCallingMode
      HarmBlockMethod
      HarmBlockThreshold
      HarmCategory
      HarmProbability
      HarmSeverity
      LANGUAGE_TAG
      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

      28 dependencies

      BlockReason
      DEFAULT_API_VERSION
      DEFAULT_BASE_URL
      DEFAULT_FETCH_TIMEOUT_MS
      DEFAULT_LOCATION
      FinishReason
      FunctionCallingMode
      HarmBlockMethod
      HarmBlockThreshold
      HarmCategory
      HarmProbability
      HarmSeverity
      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

      + Modality

    • HarmBlockMethod

      Size

      TypeBase (3418ef8)Merge (5f82c0f)Diff
      size2.52 kB2.70 kB+180 B (+7.1%)
      size-with-ext-deps20.4 kB20.6 kB+183 B (+0.9%)

      Dependency

      TypeBase (3418ef8)Merge (5f82c0f)Diff
      variables

      14 dependencies

      BlockReason
      DEFAULT_LOCATION
      FinishReason
      FunctionCallingMode
      HarmBlockMethod
      HarmBlockThreshold
      HarmCategory
      HarmProbability
      HarmSeverity
      SchemaType
      Task
      VERTEX_TYPE
      name
      version

      15 dependencies

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

      + Modality

    • HarmBlockThreshold

      Size

      TypeBase (3418ef8)Merge (5f82c0f)Diff
      size2.53 kB2.71 kB+180 B (+7.1%)
      size-with-ext-deps20.4 kB20.6 kB+183 B (+0.9%)

      Dependency

      TypeBase (3418ef8)Merge (5f82c0f)Diff
      variables

      14 dependencies

      BlockReason
      DEFAULT_LOCATION
      FinishReason
      FunctionCallingMode
      HarmBlockMethod
      HarmBlockThreshold
      HarmCategory
      HarmProbability
      HarmSeverity
      SchemaType
      Task
      VERTEX_TYPE
      name
      version

      15 dependencies

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

      + Modality

    • HarmCategory

      Size

      TypeBase (3418ef8)Merge (5f82c0f)Diff
      size2.52 kB2.70 kB+180 B (+7.1%)
      size-with-ext-deps20.4 kB20.6 kB+183 B (+0.9%)

      Dependency

      TypeBase (3418ef8)Merge (5f82c0f)Diff
      variables

      14 dependencies

      BlockReason
      DEFAULT_LOCATION
      FinishReason
      FunctionCallingMode
      HarmBlockMethod
      HarmBlockThreshold
      HarmCategory
      HarmProbability
      HarmSeverity
      SchemaType
      Task
      VERTEX_TYPE
      name
      version

      15 dependencies

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

      + Modality

    • HarmProbability

      Size

      TypeBase (3418ef8)Merge (5f82c0f)Diff
      size2.52 kB2.70 kB+180 B (+7.1%)
      size-with-ext-deps20.4 kB20.6 kB+183 B (+0.9%)

      Dependency

      TypeBase (3418ef8)Merge (5f82c0f)Diff
      variables

      14 dependencies

      BlockReason
      DEFAULT_LOCATION
      FinishReason
      FunctionCallingMode
      HarmBlockMethod
      HarmBlockThreshold
      HarmCategory
      HarmProbability
      HarmSeverity
      SchemaType
      Task
      VERTEX_TYPE
      name
      version

      15 dependencies

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

      + Modality

    • HarmSeverity

      Size

      TypeBase (3418ef8)Merge (5f82c0f)Diff
      size2.52 kB2.70 kB+180 B (+7.1%)
      size-with-ext-deps20.4 kB20.6 kB+183 B (+0.9%)

      Dependency

      TypeBase (3418ef8)Merge (5f82c0f)Diff
      variables

      14 dependencies

      BlockReason
      DEFAULT_LOCATION
      FinishReason
      FunctionCallingMode
      HarmBlockMethod
      HarmBlockThreshold
      HarmCategory
      HarmProbability
      HarmSeverity
      SchemaType
      Task
      VERTEX_TYPE
      name
      version

      15 dependencies

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

      + Modality

    • IntegerSchema

      Size

      TypeBase (3418ef8)Merge (5f82c0f)Diff
      size4.61 kB4.79 kB+180 B (+3.9%)
      size-with-ext-deps22.5 kB22.7 kB+183 B (+0.8%)

      Dependency

      TypeBase (3418ef8)Merge (5f82c0f)Diff
      variables

      14 dependencies

      BlockReason
      DEFAULT_LOCATION
      FinishReason
      FunctionCallingMode
      HarmBlockMethod
      HarmBlockThreshold
      HarmCategory
      HarmProbability
      HarmSeverity
      SchemaType
      Task
      VERTEX_TYPE
      name
      version

      15 dependencies

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

      + Modality

    • Modality

      Size

      TypeBase (3418ef8)Merge (5f82c0f)Diff
      size?2.70 kB? (?)
      size-with-ext-deps?20.6 kB? (?)

      Dependency

      TypeBase (3418ef8)Merge (5f82c0f)Diff
      functions?

      registerVertex

      ?
      classes?

      VertexAIService

      ?
      variables?

      15 dependencies

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

      ?
      enums??

      External Dependency

      ModuleBase (3418ef8)Merge (5f82c0f)Diff
      @firebase/app?

      _registerComponent
      registerVersion

      ?
      @firebase/component?

      Component

      ?
      @firebase/logger?

      Logger

      ?
    • NumberSchema

      Size

      TypeBase (3418ef8)Merge (5f82c0f)Diff
      size4.61 kB4.79 kB+180 B (+3.9%)
      size-with-ext-deps22.5 kB22.7 kB+183 B (+0.8%)

      Dependency

      TypeBase (3418ef8)Merge (5f82c0f)Diff
      variables

      14 dependencies

      BlockReason
      DEFAULT_LOCATION
      FinishReason
      FunctionCallingMode
      HarmBlockMethod
      HarmBlockThreshold
      HarmCategory
      HarmProbability
      HarmSeverity
      SchemaType
      Task
      VERTEX_TYPE
      name
      version

      15 dependencies

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

      + Modality

    • ObjectSchema

      Size

      TypeBase (3418ef8)Merge (5f82c0f)Diff
      size4.61 kB4.79 kB+180 B (+3.9%)
      size-with-ext-deps22.5 kB22.7 kB+183 B (+0.8%)

      Dependency

      TypeBase (3418ef8)Merge (5f82c0f)Diff
      variables

      14 dependencies

      BlockReason
      DEFAULT_LOCATION
      FinishReason
      FunctionCallingMode
      HarmBlockMethod
      HarmBlockThreshold
      HarmCategory
      HarmProbability
      HarmSeverity
      SchemaType
      Task
      VERTEX_TYPE
      name
      version

      15 dependencies

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

      + Modality

    • POSSIBLE_ROLES

      Size

      TypeBase (3418ef8)Merge (5f82c0f)Diff
      size2.57 kB2.75 kB+180 B (+7.0%)
      size-with-ext-deps20.5 kB20.6 kB+183 B (+0.9%)

      Dependency

      TypeBase (3418ef8)Merge (5f82c0f)Diff
      variables

      15 dependencies

      BlockReason
      DEFAULT_LOCATION
      FinishReason
      FunctionCallingMode
      HarmBlockMethod
      HarmBlockThreshold
      HarmCategory
      HarmProbability
      HarmSeverity
      POSSIBLE_ROLES
      SchemaType
      Task
      VERTEX_TYPE
      name
      version

      16 dependencies

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

      + Modality

    • Schema

      Size

      TypeBase (3418ef8)Merge (5f82c0f)Diff
      size4.61 kB4.79 kB+180 B (+3.9%)
      size-with-ext-deps22.5 kB22.7 kB+183 B (+0.8%)

      Dependency

      TypeBase (3418ef8)Merge (5f82c0f)Diff
      variables

      14 dependencies

      BlockReason
      DEFAULT_LOCATION
      FinishReason
      FunctionCallingMode
      HarmBlockMethod
      HarmBlockThreshold
      HarmCategory
      HarmProbability
      HarmSeverity
      SchemaType
      Task
      VERTEX_TYPE
      name
      version

      15 dependencies

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

      + Modality

    • SchemaType

      Size

      TypeBase (3418ef8)Merge (5f82c0f)Diff
      size2.52 kB2.70 kB+180 B (+7.1%)
      size-with-ext-deps20.4 kB20.6 kB+183 B (+0.9%)

      Dependency

      TypeBase (3418ef8)Merge (5f82c0f)Diff
      variables

      14 dependencies

      BlockReason
      DEFAULT_LOCATION
      FinishReason
      FunctionCallingMode
      HarmBlockMethod
      HarmBlockThreshold
      HarmCategory
      HarmProbability
      HarmSeverity
      SchemaType
      Task
      VERTEX_TYPE
      name
      version

      15 dependencies

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

      + Modality

    • StringSchema

      Size

      TypeBase (3418ef8)Merge (5f82c0f)Diff
      size4.61 kB4.79 kB+180 B (+3.9%)
      size-with-ext-deps22.5 kB22.7 kB+183 B (+0.8%)

      Dependency

      TypeBase (3418ef8)Merge (5f82c0f)Diff
      variables

      14 dependencies

      BlockReason
      DEFAULT_LOCATION
      FinishReason
      FunctionCallingMode
      HarmBlockMethod
      HarmBlockThreshold
      HarmCategory
      HarmProbability
      HarmSeverity
      SchemaType
      Task
      VERTEX_TYPE
      name
      version

      15 dependencies

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

      + Modality

    • VertexAIError

      Size

      TypeBase (3418ef8)Merge (5f82c0f)Diff
      size2.83 kB3.01 kB+180 B (+6.4%)
      size-with-ext-deps20.7 kB20.9 kB+183 B (+0.9%)

      Dependency

      TypeBase (3418ef8)Merge (5f82c0f)Diff
      variables

      14 dependencies

      BlockReason
      DEFAULT_LOCATION
      FinishReason
      FunctionCallingMode
      HarmBlockMethod
      HarmBlockThreshold
      HarmCategory
      HarmProbability
      HarmSeverity
      SchemaType
      Task
      VERTEX_TYPE
      name
      version

      15 dependencies

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

      + Modality

    • getGenerativeModel

      Size

      TypeBase (3418ef8)Merge (5f82c0f)Diff
      size17.5 kB17.6 kB+182 B (+1.0%)
      size-with-ext-deps36.4 kB36.6 kB+183 B (+0.5%)

      Dependency

      TypeBase (3418ef8)Merge (5f82c0f)Diff
      variables

      27 dependencies

      BlockReason
      DEFAULT_API_VERSION
      DEFAULT_BASE_URL
      DEFAULT_FETCH_TIMEOUT_MS
      DEFAULT_LOCATION
      FinishReason
      FunctionCallingMode
      HarmBlockMethod
      HarmBlockThreshold
      HarmCategory
      HarmProbability
      HarmSeverity
      LANGUAGE_TAG
      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

      28 dependencies

      BlockReason
      DEFAULT_API_VERSION
      DEFAULT_BASE_URL
      DEFAULT_FETCH_TIMEOUT_MS
      DEFAULT_LOCATION
      FinishReason
      FunctionCallingMode
      HarmBlockMethod
      HarmBlockThreshold
      HarmCategory
      HarmProbability
      HarmSeverity
      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

      + Modality

    • getVertexAI

      Size

      TypeBase (3418ef8)Merge (5f82c0f)Diff
      size2.70 kB2.88 kB+180 B (+6.7%)
      size-with-ext-deps27.9 kB28.1 kB+183 B (+0.7%)

      Dependency

      TypeBase (3418ef8)Merge (5f82c0f)Diff
      variables

      14 dependencies

      BlockReason
      DEFAULT_LOCATION
      FinishReason
      FunctionCallingMode
      HarmBlockMethod
      HarmBlockThreshold
      HarmCategory
      HarmProbability
      HarmSeverity
      SchemaType
      Task
      VERTEX_TYPE
      name
      version

      15 dependencies

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

      + Modality

Test Logs

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

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.

Looks good, just need to add a changeset - yarn changeset, choose "@firebase/vertexai" (should already be selected) and "firebase" (won't be selected) and select "minor" for both. If you can't select "firebase" that's ok, you can also add 'firebase': minor manually in the resulting changeset file after it's created.

@rlazo rlazo requested review from a team as code owners February 8, 2025 04:49
@rlazo rlazo requested a review from hsubox76 February 11, 2025 15:44
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