Class GeminiTunedModelCreateRequest
Creates a tuned model. Response type is GeminiTunedModelCreateResponse.
public class GeminiTunedModelCreateRequest : IGeminiPostRequest, IGeminiRequest
- Inheritance
-
GeminiTunedModelCreateRequest
- Implements
- Extension Methods
Remarks
Only available in the beta API.
Constructors
GeminiTunedModelCreateRequest(GeminiTunedModelCreationData, bool)
Creates a new GeminiTunedModelCreateRequest.
public GeminiTunedModelCreateRequest(GeminiTunedModelCreationData model, bool useBetaApi = true)
Parameters
model
GeminiTunedModelCreationDataThe tuned model to be created.
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
Model
The tuned model to be created.
public GeminiTunedModelCreationData Model
Field Value
ModelId
The unique id for the tuned model if specified.
public GeminiModelId ModelId
Field Value
Remarks
This value should be up to 40 characters, the first character must be a letter, the last could
be a letter or a number.
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.