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
stringThe 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
Fields
BaseModelId
The ID of the base model, not very useful for GeminiTunedModels.
public string BaseModelId
Field Value
DefaultModelResourceLocation
The default resource location for all models.
public const string DefaultModelResourceLocation = "models/"
Field Value
Name
The resource name of the Model.
public string Name
Field Value
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
stringThe full name of the model resource or the unique ID of the base model.
Returns
implicit operator string(GeminiModelId)
Gets the full name of the model resource of the GeminiModelId.
public static implicit operator string(GeminiModelId model)
Parameters
model
GeminiModelIdThe GeminiModelId.