Skip to content

Latest commit

 

History

History
66 lines (43 loc) · 1.82 KB

vertexai.vertexaimodel.md

File metadata and controls

66 lines (43 loc) · 1.82 KB

Project: /docs/reference/js/_project.yaml Book: /docs/reference/_book.yaml page_type: reference

{% comment %} DO NOT EDIT THIS FILE! This is generated by the JS SDK team, and any local changes will be overwritten. Changes should be made in the source code at https://github.com/firebase/firebase-js-sdk {% endcomment %}

VertexAIModel class

Base class for Vertex AI in Firebase model APIs.

The constructor for this class is marked as internal. Third-party code should not call the constructor directly or create subclasses that extend the VertexAIModel class.

Signature:

export declare abstract class VertexAIModel 

Properties

Property Modifiers Type Description
model string The fully qualified model resource name to use for generating images (for example, publishers/google/models/imagen-3.0-generate-002).

Methods

Method Modifiers Description
normalizeModelName(modelName) static Normalizes the given model name to a fully qualified model resource name.

VertexAIModel.model

The fully qualified model resource name to use for generating images (for example, publishers/google/models/imagen-3.0-generate-002).

Signature:

readonly model: string;

VertexAIModel.normalizeModelName()

Normalizes the given model name to a fully qualified model resource name.

Signature:

static normalizeModelName(modelName: string): string;

Parameters

Parameter Type Description
modelName string The model name to normalize.

Returns:

string

The fully qualified model resource name.