Package io.github.sashirestela.openai
Interface OpenAI.Models
-
- Enclosing interface:
- OpenAI
public static interface OpenAI.Models
List and describe the various models available in the API.- See Also:
- OpenAI Model
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description CompletableFuture<OpenAIDeletedResponse>
delete(String modelId)
Delete a fine tuned model.CompletableFuture<List<ModelResponse>>
getList()
Lists the currently available models, and provides basic information about each one such as the owner and availability.CompletableFuture<ModelResponse>
getOne(String modelId)
Retrieves a model instance, providing basic information about the model such as the owner and permissioning.
-
-
-
Method Detail
-
getList
@GET("/v1/models") CompletableFuture<List<ModelResponse>> getList()
Lists the currently available models, and provides basic information about each one such as the owner and availability.- Returns:
- A list of model objects.
-
getOne
@GET("/v1/models/{modelId}") CompletableFuture<ModelResponse> getOne(@Path("modelId") String modelId)
Retrieves a model instance, providing basic information about the model such as the owner and permissioning.- Parameters:
modelId
- The id of the model to use for this request.- Returns:
- The model object matching the specified id.
-
delete
@DELETE("/v1/models/{modelId}") CompletableFuture<OpenAIDeletedResponse> delete(@Path("modelId") String modelId)
Delete a fine tuned model.- Parameters:
modelId
- The id of the dine tuned model to use for this request.- Returns:
- Deletion status.
-
-