UGemini 2.0.1
A C# wrapper for the Google Gemini API.
|
Generates multiple embeddings from the model given input text in a synchronous call. More...
Public Member Functions | |||
string | GetEndpointUri (GeminiRequestMetadata metadata) | ||
Gets the URI to the API endpoint.
| |||
GeminiBatchEmbedContentRequest (GeminiModelId model, bool useBetaApi=false) | |||
Creates a new GeminiBatchEmbedContentRequest. | |||
string | GetUtf8EncodedData () | ||
Converts the request object to a UTF-8 encoded string.
| |||
Public Attributes | |
GeminiEmbedContentRequest[] | Requests |
Embed requests for the batch. The model in each of these requests must match the model specified in Model. | |
GeminiModelId | Model |
The model to use. | |
string | ApiVersion |
The API version to use. | |
Properties | |
string | ContentType [get] |
The MIME type of the request content. | |
Properties inherited from Uralstech.UGemini.IGeminiPostRequest |
Generates multiple embeddings from the model given input text in a synchronous call.
Uralstech.UGemini.Models.Embedding.GeminiBatchEmbedContentRequest.GeminiBatchEmbedContentRequest | ( | GeminiModelId | model, |
bool | useBetaApi = false ) |
Creates a new GeminiBatchEmbedContentRequest.
model | The model to use. |
useBetaApi | Should the request use the Beta API? |
string Uralstech.UGemini.Models.Embedding.GeminiBatchEmbedContentRequest.GetEndpointUri | ( | GeminiRequestMetadata | metadata | ) |
Gets the URI to the API endpoint.
metadata | The metadata of the request to be carried out on the URI. |
Implements Uralstech.UGemini.IGeminiRequest.
string Uralstech.UGemini.Models.Embedding.GeminiBatchEmbedContentRequest.GetUtf8EncodedData | ( | ) |
Converts the request object to a UTF-8 encoded string.
Implements Uralstech.UGemini.IGeminiPostRequest.
|
get |
The MIME type of the request content.
Implements Uralstech.UGemini.IGeminiPostRequest.