Table of Contents

Class GeminiModelId

Information about the unique ID of a Generative Language Model.

public class GeminiModelId
Inheritance
GeminiModelId
Derived
Extension Methods

Constructors

GeminiModelId(string)

Creates a new GeminiModelId.

public GeminiModelId(string nameOrBaseModelId)

Parameters

nameOrBaseModelId string

The full name of the model resource (see Name) or the unique ID of the base model.

GeminiModelId(string, string)

Creates a new GeminiModelId.

public GeminiModelId(string name, string baseModelId)

Parameters

name string

The resource name of the Model, see Name.

baseModelId string

The ID of the base model.

Fields

BaseModelId

The ID of the base model, not very useful for GeminiTunedModels.

public string BaseModelId

Field Value

string

DefaultModelResourceLocation

The default resource location for all models.

public const string DefaultModelResourceLocation = "models/"

Field Value

string

Name

The resource name of the Model.

public string Name

Field Value

string

Remarks

Format: models/{model} with a {model} naming convention of:
"{baseModelId}-{version}"

Operators

implicit operator GeminiModelId(string)

Creates a new GeminiModelId with the full name of the model resource (see Name) or the unique ID of the base model.

public static implicit operator GeminiModelId(string nameOrBaseModelId)

Parameters

nameOrBaseModelId string

The full name of the model resource or the unique ID of the base model.

Returns

GeminiModelId

implicit operator string(GeminiModelId)

Gets the full name of the model resource of the GeminiModelId.

public static implicit operator string(GeminiModelId model)

Parameters

model GeminiModelId

The GeminiModelId.

Returns

string