Package com.openai.services.blocking
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. Modelretrieve(ModelRetrieveParams params)Retrieves a model instance, providing basic information about the model such as the owner and permissioning. abstract Modelretrieve(ModelRetrieveParams params, RequestOptions requestOptions)ModelListPagelist()Lists the currently available models, and provides basic information about each one such as the owner and availability. abstract ModelListPagelist(ModelListParams params, RequestOptions requestOptions)ModelListPagelist(ModelListParams params)ModelListPagelist(RequestOptions requestOptions)ModelDeleteddelete(ModelDeleteParams params)Delete a fine-tuned model. abstract ModelDeleteddelete(ModelDeleteParams params, 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
Model retrieve(ModelRetrieveParams params)
Retrieves a model instance, providing basic information about the model such as the owner and permissioning.
-
retrieve
abstract Model retrieve(ModelRetrieveParams params, RequestOptions requestOptions)
-
list
ModelListPage list()
Lists the currently available models, and provides basic information about each one such as the owner and availability.
-
list
abstract ModelListPage list(ModelListParams params, RequestOptions requestOptions)
-
list
ModelListPage list(ModelListParams params)
-
list
ModelListPage list(RequestOptions requestOptions)
-
delete
ModelDeleted delete(ModelDeleteParams params)
Delete a fine-tuned model. You must have the Owner role in your organization to delete a model.
-
delete
abstract ModelDeleted delete(ModelDeleteParams params, RequestOptions requestOptions)
-
-
-
-