Class GeminiTunedModelListRequest
Requests metadata for all existing tuned models. Return type is GeminiTunedModelListResponse.
public class GeminiTunedModelListRequest : IGeminiGetRequest, IGeminiRequest
- Inheritance
-
objectGeminiTunedModelListRequest
- Implements
- Extension Methods
Remarks
Only available in the beta API.
Constructors
GeminiTunedModelListRequest(bool)
Creates a new GeminiTunedModelListRequest.
public GeminiTunedModelListRequest(bool useBetaApi = true)
Parameters
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
Filter
Simple filter to get models by account authorizations.
public GeminiTunedModelListFilter Filter
Field Value
MaxResponseModels
The maximum number of GeminiTunedModels to return (per page).
public int MaxResponseModels
Field Value
- int
Remarks
This method returns at most 1000 models per page, even if you pass a larger MaxResponseModels.
PageToken
A page token from a previous GeminiTunedModelListRequest call.
public string PageToken
Field Value
- string
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.