Interface ModelService
-
- All Implemented Interfaces:
public interface ModelService
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public interfaceModelService.WithRawResponseA view of ModelService that provides access to raw HTTP responses for each method.
-
Method Summary
Modifier and Type Method Description abstract ModelService.WithRawResponsewithRawResponse()Returns a view of this service that provides access to raw HTTP responses for each method. BetaModelInforetrieve(ModelRetrieveParams params)Get a specific model. abstract BetaModelInforetrieve(ModelRetrieveParams params, RequestOptions requestOptions)ModelListPagelist()List available models. abstract ModelListPagelist(ModelListParams params, RequestOptions requestOptions)ModelListPagelist(ModelListParams params)ModelListPagelist(RequestOptions requestOptions)-
-
Method Detail
-
withRawResponse
abstract ModelService.WithRawResponse withRawResponse()
Returns a view of this service that provides access to raw HTTP responses for each method.
-
retrieve
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 BetaModelInfo retrieve(ModelRetrieveParams params, RequestOptions requestOptions)
-
list
ModelListPage 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 ModelListPage list(ModelListParams params, RequestOptions requestOptions)
-
list
ModelListPage list(ModelListParams params)
-
list
ModelListPage list(RequestOptions requestOptions)
-
-
-
-