Class GeminiModel
Information about a Generative Language Model.
public class GeminiModel : GeminiModelId
- Inheritance
-
GeminiModel
- Inherited Members
- Extension Methods
Fields
Aqa
public static readonly GeminiModelId Aqa
Field Value
Remarks
Supports text input.
Description
A short description of the model.
public string Description
Field Value
DisplayName
The human-readable name of the model. E.g. "Chat Bison".
public string DisplayName
Field Value
Remarks
The name can be up to 128 characters long and can consist of any UTF-8 characters.
Gemini1_0Pro
public static readonly GeminiModelId Gemini1_0Pro
Field Value
Remarks
Supports text input.
Gemini1_0ProTuning
Finetuning-supported version of Gemini1_0Pro.
public static readonly GeminiModelId Gemini1_0ProTuning
Field Value
Remarks
Gemini1_0ProVision
public static readonly GeminiModelId Gemini1_0ProVision
Field Value
Remarks
Supports image, video and text input.
Gemini1_5Flash
public static readonly GeminiModelId Gemini1_5Flash
Field Value
Remarks
Supports audio, image, video and text input.
Gemini1_5FlashTuning
Finetuning-supported version of Gemini1_5Flash.
public static readonly GeminiModelId Gemini1_5FlashTuning
Field Value
Remarks
Gemini1_5Pro
public static readonly GeminiModelId Gemini1_5Pro
Field Value
Remarks
Supports audio, image, video and text input.
InputTokenLimit
Maximum number of input tokens allowed for this model.
public int InputTokenLimit
Field Value
MaxTemperature
The maximum temperature this model can use.
public float MaxTemperature
Field Value
OutputTokenLimit
Maximum number of output tokens available for this model.
public int OutputTokenLimit
Field Value
SupportedGenerationMethods
The model's supported generation methods.
public string[] SupportedGenerationMethods
Field Value
- string[]
Remarks
The method names are defined as Pascal case strings, such as generateMessage
which correspond to API methods.
Temperature
Controls the randomness of the output.
public float Temperature
Field Value
Remarks
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.
TextEmbedding004
public static readonly GeminiModelId TextEmbedding004
Field Value
Remarks
Supports text input.
TopK
For Top-k sampling.
public int TopK
Field Value
Remarks
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.
TopP
For Nucleus sampling.
public float TopP
Field Value
Remarks
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.
Version
The version number of the model.
public string Version
Field Value
Remarks
This represents the major version