Table of Contents

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)

public GeminiTunedModelTransferOwnershipRequest(GeminiModelId tunedModel, bool useBetaApi = true)

Parameters

tunedModel GeminiModelId

The ID of the tuned model to transfer.

useBetaApi bool

Should 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

string

EmailAddress

The email address of the user to whom the tuned model is being transferred to.

public string EmailAddress

Field Value

string

TunedModel

The ID of the tuned model.

public GeminiModelId TunedModel

Field Value

GeminiModelId

Properties

AuthMethod

The preferred authentication method.

public GeminiAuthMethod AuthMethod { get; set; }

Property Value

GeminiAuthMethod

ContentType

The MIME type of the request content.

public string ContentType { get; }

Property Value

string

OAuthAccessToken

The OAuth access token to authenticate the request, if using OAuthAccessToken as AuthMethod.

public string OAuthAccessToken { get; set; }

Property Value

string

Methods

GetEndpointUri(GeminiRequestMetadata)

Gets the URI to the API endpoint.

public string GetEndpointUri(GeminiRequestMetadata metadata)

Parameters

metadata GeminiRequestMetadata

The 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.