Package com.openai.services.async
Interface ModelServiceAsync
-
- All Implemented Interfaces:
public interface ModelServiceAsync
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public interface
ModelServiceAsync.WithRawResponse
A view of ModelServiceAsync that provides access to raw HTTP responses for each method.
-
Method Summary
Modifier and Type Method Description abstract ModelServiceAsync.WithRawResponse
withRawResponse()
Returns a view of this service that provides access to raw HTTP responses for each method. CompletableFuture<Model>
retrieve(ModelRetrieveParams params)
Retrieves a model instance, providing basic information about the model such as the owner and permissioning. abstract CompletableFuture<Model>
retrieve(ModelRetrieveParams params, RequestOptions requestOptions)
CompletableFuture<ModelListPageAsync>
list()
Lists the currently available models, and provides basic information about each one such as the owner and availability. abstract CompletableFuture<ModelListPageAsync>
list(ModelListParams params, RequestOptions requestOptions)
CompletableFuture<ModelListPageAsync>
list(ModelListParams params)
CompletableFuture<ModelListPageAsync>
list(RequestOptions requestOptions)
CompletableFuture<ModelDeleted>
delete(ModelDeleteParams params)
Delete a fine-tuned model. abstract CompletableFuture<ModelDeleted>
delete(ModelDeleteParams params, 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<Model> retrieve(ModelRetrieveParams params)
Retrieves a model instance, providing basic information about the model such as the owner and permissioning.
-
retrieve
abstract CompletableFuture<Model> retrieve(ModelRetrieveParams params, RequestOptions requestOptions)
-
list
CompletableFuture<ModelListPageAsync> list()
Lists the currently available models, and provides basic information about each one such as the owner and availability.
-
list
abstract CompletableFuture<ModelListPageAsync> list(ModelListParams params, RequestOptions requestOptions)
-
list
CompletableFuture<ModelListPageAsync> list(ModelListParams params)
-
list
CompletableFuture<ModelListPageAsync> list(RequestOptions requestOptions)
-
delete
CompletableFuture<ModelDeleted> delete(ModelDeleteParams params)
Delete a fine-tuned model. You must have the Owner role in your organization to delete a model.
-
delete
abstract CompletableFuture<ModelDeleted> delete(ModelDeleteParams params, RequestOptions requestOptions)
-
-
-
-