openai/src/08abd2df-1406-4939-a1a6-94d.../code.power

18 lines
328 B
Plaintext

/**
* List the available models from OpenAI API.
*
* @return object|null
* @since 3.2.0
**/
public function list(): ?object
{
// Build the request path.
$path = "/models";
// Send the get request.
return $this->response->get(
$this->http->get(
$this->uri->get($path)
)
);
}