UGemini 2.0.1
A C# wrapper for the Google Gemini API.
|
Information about a Generative Language Model. More...
Public Attributes | |
string | Version |
The version number of the model. | |
string | DisplayName |
The human-readable name of the model. E.g. "Chat Bison". | |
string | Description |
A short description of the model. | |
int | InputTokenLimit |
Maximum number of input tokens allowed for this model. | |
int | OutputTokenLimit |
Maximum number of output tokens available for this model. | |
string[] | SupportedGenerationMethods |
The model's supported generation methods. | |
float | Temperature |
Controls the randomness of the output. | |
float | TopP |
For Nucleus sampling. | |
int | TopK |
For Top-k sampling. | |
Public Attributes inherited from Uralstech.UGemini.Models.GeminiModelId | |
string | Name |
The resource name of the Model. | |
string | BaseModelId |
The ID of the base model, pass this to the generation request. | |
Additional Inherited Members | |
Public Member Functions inherited from Uralstech.UGemini.Models.GeminiModelId | |
GeminiModelId (string nameOrBaseModelId) | |
Creates a new GeminiModelId. | |
GeminiModelId (string name, string baseModelId) | |
Creates a new GeminiModelId. | |
Static Public Member Functions inherited from Uralstech.UGemini.Models.GeminiModelId | |
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. | |
Information about a Generative Language Model.
|
static |
string Uralstech.UGemini.Models.GeminiModel.DisplayName |
The human-readable name of the model. E.g. "Chat Bison".
The name can be up to 128 characters long and can consist of any UTF-8 characters.
|
static |
|
static |
|
static |
Gemini 1.5 Flash is a fast and versatile multimodal model for scaling across diverse tasks.
Supports audio, image, video and text input.
|
static |
Supports audio, image, video and text input.
string [] Uralstech.UGemini.Models.GeminiModel.SupportedGenerationMethods |
The model's supported generation methods.
The method names are defined as Pascal case strings, such as generateMessage
which correspond to API methods.
float Uralstech.UGemini.Models.GeminiModel.Temperature |
Controls the randomness of the output.
Values can range over [0.0,2.0], inclusive. A higher value will produce responses that are more varied, while a value closer to
0.0 will typically result in less surprising responses from the model. This value specifies default to be used by the backend
while making the call to the model.
|
static |
int Uralstech.UGemini.Models.GeminiModel.TopK |
For Top-k sampling.
Top-k sampling considers the set of topK most probable tokens. This value specifies default to be used by the backend while making the call
to the model. If unset, indicates the model doesn't use top-k sampling, and topK isn't allowed as a generation parameter.
float Uralstech.UGemini.Models.GeminiModel.TopP |
For Nucleus sampling.
Nucleus sampling considers the smallest set of tokens whose probability sum is at least topP. This value specifies default to be used
by the backend while making the call to the model.
string Uralstech.UGemini.Models.GeminiModel.Version |
The version number of the model.
This represents the major version