Class GeminiModelGetRequest
Gets information about a specific model. Return type is GeminiModel.
public class GeminiModelGetRequest : IGeminiGetRequest, IGeminiRequest
- Inheritance
-
GeminiModelGetRequest
- Implements
- Extension Methods
Constructors
GeminiModelGetRequest(GeminiModelId, bool)
Creates a new GeminiModelGetRequest.
public GeminiModelGetRequest(GeminiModelId modelId, bool useBetaApi = false)
Parameters
modelId
GeminiModelIdThe ID of the model to get.
useBetaApi
boolShould the request use the Beta API?
Remarks
Some newer models do not work with this request unless through the Beta API.
Fields
ApiVersion
The API version to use.
public string ApiVersion
Field Value
Model
The ID of the GeminiModel to get.
public GeminiModelId Model
Field Value
Properties
AuthMethod
The preferred authentication method.
public GeminiAuthMethod AuthMethod { get; set; }
Property Value
ModelName
The resource name of the model to get, in the format models/{model}.
[Obsolete("This has been deprecated, please use GeminiModelGetRequest.Model instead.")]
public string ModelName { get; set; }
Property Value
OAuthAccessToken
The OAuth access token to authenticate the request, if using OAuthAccessToken as AuthMethod.
public string OAuthAccessToken { get; set; }
Property Value
Methods
GetEndpointUri(GeminiRequestMetadata)
Gets the URI to the API endpoint.
public string GetEndpointUri(GeminiRequestMetadata metadata)
Parameters
metadata
GeminiRequestMetadataThe metadata of the request to be carried out on the URI.
Returns
- string
The URI.