listModels

open suspend override fun listModels(): List<Model>

Retrieves the list of available models from the OpenAI API.

Return

A list of Model objects.

See also

Throws

if the API request fails.