UGemini 2.0.1
A C# wrapper for the Google Gemini API.
|
Uploads a file to the Gemini File API. Response type is GeminiFileUploadResponse. More...
Public Member Functions | |||
string | GetEndpointUri (GeminiRequestMetadata metadata) | ||
Gets the URI to the API endpoint.
| |||
GeminiFileUploadRequest (string contentType, bool useBetaApi=true) | |||
Creates a new GeminiFileUploadRequest. | |||
GeminiFileUploadRequest (GeminiContentType contentType, bool useBetaApi=true) | |||
Creates a new GeminiFileUploadRequest. | |||
string | GetUtf8EncodedData (string dataSeperator) | ||
Converts the request object to a UTF-8 encoded multi-part string.
| |||
Public Attributes | |
GeminiFileUploadMetaData | File = null |
Optional metadata for the GeminiFile to be uploaded. | |
string | MimeType |
The IANA standard MIME type of the GeminiFileUploadRequest. | |
byte[] | RawData |
The raw file data to upload. | |
string | ApiVersion |
The API version to use. | |
Properties | |
string | ContentType [get] |
Uploads a file to the Gemini File API. Response type is GeminiFileUploadResponse.
Only available in the beta API.
Uralstech.UGemini.FileAPI.GeminiFileUploadRequest.GeminiFileUploadRequest | ( | string | contentType, |
bool | useBetaApi = true ) |
Creates a new GeminiFileUploadRequest.
Only available in the beta API.
contentType | The content type of the data. |
useBetaApi | Should the request use the Beta API? |
Uralstech.UGemini.FileAPI.GeminiFileUploadRequest.GeminiFileUploadRequest | ( | GeminiContentType | contentType, |
bool | useBetaApi = true ) |
Creates a new GeminiFileUploadRequest.
Only available in the beta API.
contentType | The content type of the data. |
useBetaApi | Should the request use the Beta API? |
string Uralstech.UGemini.FileAPI.GeminiFileUploadRequest.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.FileAPI.GeminiFileUploadRequest.GetUtf8EncodedData | ( | string | dataSeperator | ) |
Converts the request object to a UTF-8 encoded multi-part string.
dataSeperator | The boundary to seperate each part of the data. |
Implements Uralstech.UGemini.IGeminiMultiPartPostRequest.