pub async fn list_models(
client: &OpenAIClient,
) -> Result<Vec<ModelInfo>, OpenAIError>Expand description
Retrieves a list of all available models from the OpenAI API.
Corresponds to GET /v1/models.
ยงErrors
Returns an OpenAIError if the network request fails or the response
cannot be parsed.