UGemini 2.0.1
A C# wrapper for the Google Gemini API.
Loading...
Searching...
No Matches
Uralstech.UGemini.Models.GeminiModelId Class Reference

Information about the unique ID of a Generative Language Model. More...

Inheritance diagram for Uralstech.UGemini.Models.GeminiModelId:
Uralstech.UGemini.Models.GeminiModel

Public Member Functions

 GeminiModelId (string nameOrBaseModelId)
 Creates a new GeminiModelId.
 
 GeminiModelId (string name, string baseModelId)
 Creates a new GeminiModelId.
 

Static Public Member Functions

static implicit operator string (GeminiModelId model)
 Gets the base model ID of the GeminiModelId.
 
static implicit operator GeminiModelId (string nameOrBaseModelId)
 Creates a new GeminiModelId with the full name of the model resource (see Name) or the unique ID of the base model.
 

Public Attributes

string Name
 The resource name of the Model.
 
string BaseModelId
 The ID of the base model, pass this to the generation request.
 

Static Public Attributes

const string DefaultModelResourceLocation = "models/"
 The default resource location for all models.
 

Detailed Description

Information about the unique ID of a Generative Language Model.

Constructor & Destructor Documentation

◆ GeminiModelId() [1/2]

Uralstech.UGemini.Models.GeminiModelId.GeminiModelId ( string nameOrBaseModelId)

Creates a new GeminiModelId.

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

◆ GeminiModelId() [2/2]

Uralstech.UGemini.Models.GeminiModelId.GeminiModelId ( string name,
string baseModelId )

Creates a new GeminiModelId.

Parameters
nameThe resource name of the Model, see Name.
baseModelIdThe ID of the base model.

Member Data Documentation

◆ Name

string Uralstech.UGemini.Models.GeminiModelId.Name

The resource name of the Model.

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


The documentation for this class was generated from the following file: