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 Image Generation support using Imagen #8683

Draft
wants to merge 14 commits into
base: main
Choose a base branch
from
Draft

Conversation

dlarocque
Copy link
Contributor

WIP

Copy link

changeset-bot bot commented Dec 17, 2024

⚠️ No Changeset found

Latest commit: 80021f9

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

@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 pretty good, just some nits (mostly about doc formatting) and small questions.

common/api-review/vertexai.api.md Show resolved Hide resolved
packages/vertexai/src/api.test.ts Outdated Show resolved Hide resolved
packages/vertexai/src/models/imagen-model.ts Outdated Show resolved Hide resolved
packages/vertexai/src/models/imagen-model.test.ts Outdated Show resolved Hide resolved
packages/vertexai/src/requests/request-helpers.ts Outdated Show resolved Hide resolved
packages/vertexai/src/requests/response-helpers.ts Outdated Show resolved Hide resolved
addWatermark?: boolean;
safetyFilterLevel?: string;
personGeneration?: string;
includeRaiReason: boolean;
Copy link
Contributor

Choose a reason for hiding this comment

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

We put the word "rai" in the parameter going up but we remove it in the response? I can see reasons for including or not including but it should be consistent I think?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This property is not user-facing.

Users define configurations in ImagenGenerationConfig and ImagenModelParams, and these interfaces do not define a parameter related to the RAI reason- users cannot disable this. These configurations get mapped to this PredictRequestBody interface which is internal. Here, we set includeRaiReason to always be true, since users cannot define it in the config.

The flow looks like:
User --> ImagenGenerationConfig & ImagenModelParams --> PredictRequestBody (includeRaiReason: true)--> HTTP request --> HTTP response --> ImagenResponseInternal (raiFilteredReason: ...) --> ImagenImageResponse (filteredReason: ...) --> User

@dlarocque dlarocque changed the title WIP Add Image Generation support with Imagen Jan 3, 2025
@dlarocque dlarocque changed the title Add Image Generation support with Imagen Add Image Generation support using Imagen Jan 3, 2025
@google-oss-bot
Copy link
Contributor

google-oss-bot commented Jan 3, 2025

Size Report 1

Affected Products

  • @firebase/vertexai

    TypeBase (32bf021)Merge (1abe201)Diff
    browser28.8 kB33.0 kB+4.21 kB (+14.6%)
    main29.6 kB34.0 kB+4.32 kB (+14.6%)
    module28.8 kB33.0 kB+4.21 kB (+14.6%)
  • firebase

    TypeBase (32bf021)Merge (1abe201)Diff
    firebase-vertexai.js23.8 kB27.0 kB+3.15 kB (+13.2%)

Test Logs

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

@google-oss-bot
Copy link
Contributor

Size Analysis Report 1

Affected Products

  • @firebase/vertexai

    • ArraySchema

      Size

      TypeBase (32bf021)Merge (1abe201)Diff
      size4.61 kB5.10 kB+493 B (+10.7%)
      size-with-ext-deps22.4 kB22.9 kB+502 B (+2.2%)

      Dependency

      TypeBase (32bf021)Merge (1abe201)Diff
      variables

      14 dependencies

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

      17 dependencies

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

      + ImagenAspectRatio
      + ImagenPersonFilterLevel
      + ImagenSafetyFilterLevel

    • BlockReason

      Size

      TypeBase (32bf021)Merge (1abe201)Diff
      size2.52 kB3.01 kB+493 B (+19.6%)
      size-with-ext-deps20.3 kB20.8 kB+502 B (+2.5%)

      Dependency

      TypeBase (32bf021)Merge (1abe201)Diff
      variables

      14 dependencies

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

      17 dependencies

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

      + ImagenAspectRatio
      + ImagenPersonFilterLevel
      + ImagenSafetyFilterLevel

    • BooleanSchema

      Size

      TypeBase (32bf021)Merge (1abe201)Diff
      size4.61 kB5.11 kB+493 B (+10.7%)
      size-with-ext-deps22.4 kB22.9 kB+502 B (+2.2%)

      Dependency

      TypeBase (32bf021)Merge (1abe201)Diff
      variables

      14 dependencies

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

      17 dependencies

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

      + ImagenAspectRatio
      + ImagenPersonFilterLevel
      + ImagenSafetyFilterLevel

    • ChatSession

      Size

      TypeBase (32bf021)Merge (1abe201)Diff
      size14.6 kB15.1 kB+500 B (+3.4%)
      size-with-ext-deps33.1 kB33.6 kB+502 B (+1.5%)

      Dependency

      TypeBase (32bf021)Merge (1abe201)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

      30 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
      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

      + ImagenAspectRatio
      + ImagenPersonFilterLevel
      + ImagenSafetyFilterLevel

    • FinishReason

      Size

      TypeBase (32bf021)Merge (1abe201)Diff
      size2.52 kB3.01 kB+493 B (+19.6%)
      size-with-ext-deps20.3 kB20.8 kB+502 B (+2.5%)

      Dependency

      TypeBase (32bf021)Merge (1abe201)Diff
      variables

      14 dependencies

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

      17 dependencies

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

      + ImagenAspectRatio
      + ImagenPersonFilterLevel
      + ImagenSafetyFilterLevel

    • FunctionCallingMode

      Size

      TypeBase (32bf021)Merge (1abe201)Diff
      size2.53 kB3.02 kB+493 B (+19.5%)
      size-with-ext-deps20.3 kB20.8 kB+502 B (+2.5%)

      Dependency

      TypeBase (32bf021)Merge (1abe201)Diff
      variables

      14 dependencies

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

      17 dependencies

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

      + ImagenAspectRatio
      + ImagenPersonFilterLevel
      + ImagenSafetyFilterLevel

    • GenerativeModel

      Size

      TypeBase (32bf021)Merge (1abe201)Diff
      size17.1 kB17.7 kB+582 B (+3.4%)
      size-with-ext-deps35.6 kB36.2 kB+581 B (+1.6%)

      Dependency

      TypeBase (32bf021)Merge (1abe201)Diff
      classes

      ChatSession
      GenerativeModel
      RequestUrl
      VertexAIError
      VertexAIService

      ChatSession
      GenerativeModel
      RequestUrl
      VertexAIError
      VertexAIModel
      VertexAIService

      + VertexAIModel

      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

      30 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
      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

      + ImagenAspectRatio
      + ImagenPersonFilterLevel
      + ImagenSafetyFilterLevel

    • HarmBlockMethod

      Size

      TypeBase (32bf021)Merge (1abe201)Diff
      size2.52 kB3.02 kB+493 B (+19.5%)
      size-with-ext-deps20.3 kB20.8 kB+502 B (+2.5%)

      Dependency

      TypeBase (32bf021)Merge (1abe201)Diff
      variables

      14 dependencies

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

      17 dependencies

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

      + ImagenAspectRatio
      + ImagenPersonFilterLevel
      + ImagenSafetyFilterLevel

    • HarmBlockThreshold

      Size

      TypeBase (32bf021)Merge (1abe201)Diff
      size2.53 kB3.02 kB+493 B (+19.5%)
      size-with-ext-deps20.3 kB20.8 kB+502 B (+2.5%)

      Dependency

      TypeBase (32bf021)Merge (1abe201)Diff
      variables

      14 dependencies

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

      17 dependencies

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

      + ImagenAspectRatio
      + ImagenPersonFilterLevel
      + ImagenSafetyFilterLevel

    • HarmCategory

      Size

      TypeBase (32bf021)Merge (1abe201)Diff
      size2.52 kB3.01 kB+493 B (+19.6%)
      size-with-ext-deps20.3 kB20.8 kB+502 B (+2.5%)

      Dependency

      TypeBase (32bf021)Merge (1abe201)Diff
      variables

      14 dependencies

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

      17 dependencies

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

      + ImagenAspectRatio
      + ImagenPersonFilterLevel
      + ImagenSafetyFilterLevel

    • HarmProbability

      Size

      TypeBase (32bf021)Merge (1abe201)Diff
      size2.52 kB3.02 kB+493 B (+19.5%)
      size-with-ext-deps20.3 kB20.8 kB+502 B (+2.5%)

      Dependency

      TypeBase (32bf021)Merge (1abe201)Diff
      variables

      14 dependencies

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

      17 dependencies

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

      + ImagenAspectRatio
      + ImagenPersonFilterLevel
      + ImagenSafetyFilterLevel

    • HarmSeverity

      Size

      TypeBase (32bf021)Merge (1abe201)Diff
      size2.52 kB3.01 kB+493 B (+19.6%)
      size-with-ext-deps20.3 kB20.8 kB+502 B (+2.5%)

      Dependency

      TypeBase (32bf021)Merge (1abe201)Diff
      variables

      14 dependencies

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

      17 dependencies

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

      + ImagenAspectRatio
      + ImagenPersonFilterLevel
      + ImagenSafetyFilterLevel

    • ImagenAspectRatio

      Size

      TypeBase (32bf021)Merge (1abe201)Diff
      size?3.02 kB? (?)
      size-with-ext-deps?20.8 kB? (?)

      Dependency

      TypeBase (32bf021)Merge (1abe201)Diff
      functions?

      registerVertex

      ?
      classes?

      VertexAIService

      ?
      variables?

      17 dependencies

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

      ?
      enums??

      External Dependency

      ModuleBase (32bf021)Merge (1abe201)Diff
      @firebase/app?

      _registerComponent
      registerVersion

      ?
      @firebase/component?

      Component

      ?
      @firebase/logger?

      Logger

      ?
    • ImagenImageFormat

      Size

      TypeBase (32bf021)Merge (1abe201)Diff
      size?3.18 kB? (?)
      size-with-ext-deps?21.0 kB? (?)

      Dependency

      TypeBase (32bf021)Merge (1abe201)Diff
      functions?

      registerVertex

      ?
      classes?

      ImagenImageFormat
      VertexAIService

      ?
      variables?

      17 dependencies

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

      ?
      enums??

      External Dependency

      ModuleBase (32bf021)Merge (1abe201)Diff
      @firebase/app?

      _registerComponent
      registerVersion

      ?
      @firebase/component?

      Component

      ?
      @firebase/logger?

      Logger

      ?
    • ImagenModel

      Size

      TypeBase (32bf021)Merge (1abe201)Diff
      size?9.09 kB? (?)
      size-with-ext-deps?27.2 kB? (?)

      Dependency

      TypeBase (32bf021)Merge (1abe201)Diff
      functions?

      constructRequest
      createPredictRequestBody
      getClientHeaders
      getHeaders
      handlePredictResponse
      makeRequest
      registerVertex

      ?
      classes?

      ImagenImageFormat
      ImagenModel
      RequestUrl
      VertexAIError
      VertexAIModel
      VertexAIService

      ?
      variables?

      23 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
      PACKAGE_VERSION
      SchemaType
      Task
      VERTEX_TYPE
      logger
      name
      version

      ?
      enums??

      External Dependency

      ModuleBase (32bf021)Merge (1abe201)Diff
      @firebase/app?

      _registerComponent
      registerVersion

      ?
      @firebase/component?

      Component

      ?
      @firebase/logger?

      Logger

      ?
      @firebase/util?

      FirebaseError

      ?
      tslib?

      __rest

      ?
    • ImagenPersonFilterLevel

      Size

      TypeBase (32bf021)Merge (1abe201)Diff
      size?3.03 kB? (?)
      size-with-ext-deps?20.8 kB? (?)

      Dependency

      TypeBase (32bf021)Merge (1abe201)Diff
      functions?

      registerVertex

      ?
      classes?

      VertexAIService

      ?
      variables?

      17 dependencies

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

      ?
      enums??

      External Dependency

      ModuleBase (32bf021)Merge (1abe201)Diff
      @firebase/app?

      _registerComponent
      registerVersion

      ?
      @firebase/component?

      Component

      ?
      @firebase/logger?

      Logger

      ?
    • ImagenSafetyFilterLevel

      Size

      TypeBase (32bf021)Merge (1abe201)Diff
      size?3.03 kB? (?)
      size-with-ext-deps?20.8 kB? (?)

      Dependency

      TypeBase (32bf021)Merge (1abe201)Diff
      functions?

      registerVertex

      ?
      classes?

      VertexAIService

      ?
      variables?

      17 dependencies

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

      ?
      enums??

      External Dependency

      ModuleBase (32bf021)Merge (1abe201)Diff
      @firebase/app?

      _registerComponent
      registerVersion

      ?
      @firebase/component?

      Component

      ?
      @firebase/logger?

      Logger

      ?
    • IntegerSchema

      Size

      TypeBase (32bf021)Merge (1abe201)Diff
      size4.61 kB5.11 kB+493 B (+10.7%)
      size-with-ext-deps22.4 kB22.9 kB+502 B (+2.2%)

      Dependency

      TypeBase (32bf021)Merge (1abe201)Diff
      variables

      14 dependencies

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

      17 dependencies

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

      + ImagenAspectRatio
      + ImagenPersonFilterLevel
      + ImagenSafetyFilterLevel

    • NumberSchema

      Size

      TypeBase (32bf021)Merge (1abe201)Diff
      size4.61 kB5.10 kB+493 B (+10.7%)
      size-with-ext-deps22.4 kB22.9 kB+502 B (+2.2%)

      Dependency

      TypeBase (32bf021)Merge (1abe201)Diff
      variables

      14 dependencies

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

      17 dependencies

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

      + ImagenAspectRatio
      + ImagenPersonFilterLevel
      + ImagenSafetyFilterLevel

    • ObjectSchema

      Size

      TypeBase (32bf021)Merge (1abe201)Diff
      size4.61 kB5.10 kB+493 B (+10.7%)
      size-with-ext-deps22.4 kB22.9 kB+502 B (+2.2%)

      Dependency

      TypeBase (32bf021)Merge (1abe201)Diff
      variables

      14 dependencies

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

      17 dependencies

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

      + ImagenAspectRatio
      + ImagenPersonFilterLevel
      + ImagenSafetyFilterLevel

    • POSSIBLE_ROLES

      Size

      TypeBase (32bf021)Merge (1abe201)Diff
      size2.57 kB3.06 kB+493 B (+19.2%)
      size-with-ext-deps20.4 kB20.9 kB+502 B (+2.5%)

      Dependency

      TypeBase (32bf021)Merge (1abe201)Diff
      variables

      15 dependencies

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

      18 dependencies

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

      + ImagenAspectRatio
      + ImagenPersonFilterLevel
      + ImagenSafetyFilterLevel

    • Schema

      Size

      TypeBase (32bf021)Merge (1abe201)Diff
      size4.61 kB5.10 kB+493 B (+10.7%)
      size-with-ext-deps22.4 kB22.9 kB+502 B (+2.2%)

      Dependency

      TypeBase (32bf021)Merge (1abe201)Diff
      variables

      14 dependencies

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

      17 dependencies

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

      + ImagenAspectRatio
      + ImagenPersonFilterLevel
      + ImagenSafetyFilterLevel

    • SchemaType

      Size

      TypeBase (32bf021)Merge (1abe201)Diff
      size2.52 kB3.01 kB+493 B (+19.6%)
      size-with-ext-deps20.3 kB20.8 kB+502 B (+2.5%)

      Dependency

      TypeBase (32bf021)Merge (1abe201)Diff
      variables

      14 dependencies

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

      17 dependencies

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

      + ImagenAspectRatio
      + ImagenPersonFilterLevel
      + ImagenSafetyFilterLevel

    • StringSchema

      Size

      TypeBase (32bf021)Merge (1abe201)Diff
      size4.61 kB5.10 kB+493 B (+10.7%)
      size-with-ext-deps22.4 kB22.9 kB+502 B (+2.2%)

      Dependency

      TypeBase (32bf021)Merge (1abe201)Diff
      variables

      14 dependencies

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

      17 dependencies

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

      + ImagenAspectRatio
      + ImagenPersonFilterLevel
      + ImagenSafetyFilterLevel

    • VertexAIError

      Size

      TypeBase (32bf021)Merge (1abe201)Diff
      size2.83 kB3.32 kB+493 B (+17.4%)
      size-with-ext-deps20.6 kB21.1 kB+502 B (+2.4%)

      Dependency

      TypeBase (32bf021)Merge (1abe201)Diff
      variables

      14 dependencies

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

      17 dependencies

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

      + ImagenAspectRatio
      + ImagenPersonFilterLevel
      + ImagenSafetyFilterLevel

    • VertexAIModel

      Size

      TypeBase (32bf021)Merge (1abe201)Diff
      size?4.31 kB? (?)
      size-with-ext-deps?22.1 kB? (?)

      Dependency

      TypeBase (32bf021)Merge (1abe201)Diff
      functions?

      registerVertex

      ?
      classes?

      VertexAIError
      VertexAIModel
      VertexAIService

      ?
      variables?

      17 dependencies

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

      ?
      enums??

      External Dependency

      ModuleBase (32bf021)Merge (1abe201)Diff
      @firebase/app?

      _registerComponent
      registerVersion

      ?
      @firebase/component?

      Component

      ?
      @firebase/logger?

      Logger

      ?
      @firebase/util?

      FirebaseError

      ?
    • getGenerativeModel

      Size

      TypeBase (32bf021)Merge (1abe201)Diff
      size17.3 kB17.9 kB+582 B (+3.4%)
      size-with-ext-deps35.8 kB36.4 kB+581 B (+1.6%)

      Dependency

      TypeBase (32bf021)Merge (1abe201)Diff
      classes

      ChatSession
      GenerativeModel
      RequestUrl
      VertexAIError
      VertexAIService

      ChatSession
      GenerativeModel
      RequestUrl
      VertexAIError
      VertexAIModel
      VertexAIService

      + VertexAIModel

      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

      30 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
      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

      + ImagenAspectRatio
      + ImagenPersonFilterLevel
      + ImagenSafetyFilterLevel

    • getImagenModel

      Size

      TypeBase (32bf021)Merge (1abe201)Diff
      size?9.25 kB? (?)
      size-with-ext-deps?27.4 kB? (?)

      Dependency

      TypeBase (32bf021)Merge (1abe201)Diff
      functions?

      constructRequest
      createPredictRequestBody
      getClientHeaders
      getHeaders
      getImagenModel
      handlePredictResponse
      makeRequest
      registerVertex

      ?
      classes?

      ImagenImageFormat
      ImagenModel
      RequestUrl
      VertexAIError
      VertexAIModel
      VertexAIService

      ?
      variables?

      23 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
      PACKAGE_VERSION
      SchemaType
      Task
      VERTEX_TYPE
      logger
      name
      version

      ?
      enums??

      External Dependency

      ModuleBase (32bf021)Merge (1abe201)Diff
      @firebase/app?

      _registerComponent
      registerVersion

      ?
      @firebase/component?

      Component

      ?
      @firebase/logger?

      Logger

      ?
      @firebase/util?

      FirebaseError

      ?
      tslib?

      __rest

      ?
    • getVertexAI

      Size

      TypeBase (32bf021)Merge (1abe201)Diff
      size2.70 kB3.19 kB+493 B (+18.3%)
      size-with-ext-deps27.8 kB28.3 kB+502 B (+1.8%)

      Dependency

      TypeBase (32bf021)Merge (1abe201)Diff
      variables

      14 dependencies

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

      17 dependencies

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

      + ImagenAspectRatio
      + ImagenPersonFilterLevel
      + ImagenSafetyFilterLevel

Test Logs

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

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