Class GeminiTunedModelPatchRequest
Updates a tuned model. Response type is GeminiTunedModelPatchData.
public class GeminiTunedModelPatchRequest : IGeminiPatchRequest, IGeminiRequest
- Inheritance
-
GeminiTunedModelPatchRequest
- Implements
- Extension Methods
Remarks
Only available in the beta API.
Constructors
GeminiTunedModelPatchRequest(GeminiTunedModelPatchData, GeminiModelId, bool)
Creates a new GeminiTunedModelPatchRequest.
public GeminiTunedModelPatchRequest(GeminiTunedModelPatchData patch, GeminiModelId tunedModel, bool useBetaApi = true)
Parameters
patch
GeminiTunedModelPatchDataThe patch data.
tunedModel
GeminiModelIdThe ID of the tuned model to patch.
useBetaApi
boolShould the request use the Beta API?
Remarks
Only available in the beta API.
Fields
ApiVersion
The API version to use.
public string ApiVersion
Field Value
Patch
The patch data.
public GeminiTunedModelPatchData Patch
Field Value
TunedModel
The ID of the tuned model.
public GeminiModelId TunedModel
Field Value
Properties
AuthMethod
The preferred authentication method.
public GeminiAuthMethod AuthMethod { get; set; }
Property Value
ContentType
The MIME type of the request content.
public string ContentType { get; }
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.
GetUtf8EncodedData()
Converts the request object to a UTF-8 encoded string.
public string GetUtf8EncodedData()
Returns
- string
The string data.