Trait openai_api_rust::apis::models::ModelsApi
source · pub trait ModelsApi {
// Required methods
fn models_list(&self) -> ApiResult<Vec<Model>>;
fn models_retrieve(&self, model_id: &str) -> ApiResult<Model>;
}
Required Methods§
sourcefn models_list(&self) -> ApiResult<Vec<Model>>
fn models_list(&self) -> ApiResult<Vec<Model>>
Lists the currently available models, and provides basic information about each one such as the owner and availability.
sourcefn models_retrieve(&self, model_id: &str) -> ApiResult<Model>
fn models_retrieve(&self, model_id: &str) -> ApiResult<Model>
Retrieves a model instance, providing basic information about the model such as the owner and permissioning.