|
/**
|
|
* 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)
|
|
)
|
|
);
|
|
} |