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:

exportdeclareabstractclassVertexAIModel

Properties

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

Methods

MethodModifiersDescription
normalizeModelName(modelName)staticNormalizes 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:

readonlymodel:string;

VertexAIModel.normalizeModelName()

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

Signature:

staticnormalizeModelName(modelName:string):string;

Parameters

ParameterTypeDescription
modelNamestringThe model name to normalize.

Returns:

string

The fully qualified model resource name.