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

Gets information about a specific model. Return type is GeminiModel. More...

Inheritance diagram for Uralstech.UGemini.Models.GeminiModelGetRequest:
Uralstech.UGemini.IGeminiGetRequest Uralstech.UGemini.IGeminiRequest

Public Member Functions

string GetEndpointUri (GeminiRequestMetadata metadata)
 Gets the URI to the API endpoint.
Parameters
metadataThe metadata of the request to be carried out on the URI.
Returns
The URI.

 
 GeminiModelGetRequest (GeminiModelId modelId, bool useBetaApi=false)
 Creates a new GeminiModelGetRequest.
 

Public Attributes

string ApiVersion
 The API version to use.
 
string ModelName
 The resource name of the model to get, in the format models/{model}.
 

Detailed Description

Gets information about a specific model. Return type is GeminiModel.

Constructor & Destructor Documentation

◆ GeminiModelGetRequest()

Uralstech.UGemini.Models.GeminiModelGetRequest.GeminiModelGetRequest ( GeminiModelId modelId,
bool useBetaApi = false )

Creates a new GeminiModelGetRequest.

Some newer models do not work with this request unless through the Beta API.

Parameters
modelIdThe ID of the model to get.
useBetaApiShould the request use the Beta API?

Member Function Documentation

◆ GetEndpointUri()

string Uralstech.UGemini.Models.GeminiModelGetRequest.GetEndpointUri ( GeminiRequestMetadata metadata)

Gets the URI to the API endpoint.

Parameters
metadataThe metadata of the request to be carried out on the URI.
Returns
The URI.

Implements Uralstech.UGemini.IGeminiRequest.


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