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 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.