Struct async_openai::Models
source · pub struct Models;
Expand description
List and describe the various models available in the API. You can refer to the Models documentation to understand what models are available and the differences between them.
Implementations§
source§impl Models
impl Models
sourcepub async fn list(client: &Client) -> Result<ListModelResponse, OpenAIError>
pub async fn list(client: &Client) -> Result<ListModelResponse, OpenAIError>
Lists the currently available models, and provides basic information about each one such as the owner and availability.