Interface ModelServiceAsync
-
- All Implemented Interfaces:
public interface ModelServiceAsync
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public interfaceModelServiceAsync.WithRawResponseA view of ModelServiceAsync that provides access to raw HTTP responses for each method.
-
Method Summary
Modifier and Type Method Description abstract ModelServiceAsync.WithRawResponsewithRawResponse()Returns a view of this service that provides access to raw HTTP responses for each method. CompletableFuture<BetaModelInfo>retrieve(ModelRetrieveParams params)Get a specific model. abstract CompletableFuture<BetaModelInfo>retrieve(ModelRetrieveParams params, RequestOptions requestOptions)CompletableFuture<ModelListPageAsync>list()List available models. abstract CompletableFuture<ModelListPageAsync>list(ModelListParams params, RequestOptions requestOptions)CompletableFuture<ModelListPageAsync>list(ModelListParams params)CompletableFuture<ModelListPageAsync>list(RequestOptions requestOptions)-
-
Method Detail
-
withRawResponse
abstract ModelServiceAsync.WithRawResponse withRawResponse()
Returns a view of this service that provides access to raw HTTP responses for each method.
-
retrieve
CompletableFuture<BetaModelInfo> retrieve(ModelRetrieveParams params)
Get a specific model.
The Models API response can be used to determine information about a specific model or resolve a model alias to a model ID.
-
retrieve
abstract CompletableFuture<BetaModelInfo> retrieve(ModelRetrieveParams params, RequestOptions requestOptions)
-
list
CompletableFuture<ModelListPageAsync> list()
List available models.
The Models API response can be used to determine which models are available for use in the API. More recently released models are listed first.
-
list
abstract CompletableFuture<ModelListPageAsync> list(ModelListParams params, RequestOptions requestOptions)
-
list
CompletableFuture<ModelListPageAsync> list(ModelListParams params)
-
list
CompletableFuture<ModelListPageAsync> list(RequestOptions requestOptions)
-
-
-
-