Class GeminiTunedModelGetRequest
Gets information about a specific tuned model. Return type is GeminiModel.
public class GeminiTunedModelGetRequest : IGeminiGetRequest, IGeminiRequest
- Inheritance
-
objectGeminiTunedModelGetRequest
- Implements
- Extension Methods
Remarks
Only available in the beta API.
Constructors
GeminiTunedModelGetRequest(GeminiModelId, bool)
Creates a new GeminiTunedModelGetRequest.
public GeminiTunedModelGetRequest(GeminiModelId modelId, bool useBetaApi = true)
Parameters
modelIdGeminiModelIdThe ID of the model to get, in the format tunedModels/{model}.
useBetaApiboolShould 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
TunedModel
The ID of the GeminiTunedModel to get, in the format tunedModels/{model}.
public GeminiModelId TunedModel
Field Value
Properties
AuthMethod
The preferred authentication method.
public GeminiAuthMethod AuthMethod { get; set; }
Property Value
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
metadataGeminiRequestMetadataThe metadata of the request to be carried out on the URI.
Returns
- string
The URI.