Class GeminiTunedModelTransferOwnershipRequest
Transfers ownership of the tuned model. This is the only way to change ownership of the tuned model. The current owner will be downgraded to writer role. Does not return anything.
public class GeminiTunedModelTransferOwnershipRequest : IGeminiPostRequest, IGeminiRequest
- Inheritance
-
GeminiTunedModelTransferOwnershipRequest
- Implements
- Extension Methods
Remarks
Only available in the beta API.
Constructors
GeminiTunedModelTransferOwnershipRequest(GeminiModelId, bool)
Creates a new GeminiTunedModelTransferOwnershipRequest.
public GeminiTunedModelTransferOwnershipRequest(GeminiModelId tunedModel, bool useBetaApi = true)
Parameters
tunedModel
GeminiModelIdThe ID of the tuned model to transfer.
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
EmailAddress
The email address of the user to whom the tuned model is being transferred to.
public string EmailAddress
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.