Table of Contents
Methods
-
ask()
: string
-
getAvailableModels()
: array<string|int, mixed>
-
getCode()
: string
-
getDefaultModel()
: string
-
getModel()
: string
-
getName()
: string
-
getVersion()
: string
-
isEnabled()
: bool
ask()
public
ask(string $prompt[, string|null $model = null ][, array<string|int, mixed>|null $previousMessages = null ]) : string
Parameters
-
$prompt
: string
-
-
$model
: string|null
= null
-
-
$previousMessages
: array<string|int, mixed>|null
= null
-
getAvailableModels()
public
getAvailableModels([bool $reset = false ]) : array<string|int, mixed>
Parameters
-
$reset
: bool
= false
-
Return values
array<string|int, mixed>
getCode()
public
static getCode() : string
getDefaultModel()
public
getDefaultModel() : string
getModel()
public
getModel([string|null $model = null ]) : string
Parameters
-
$model
: string|null
= null
-
getName()
public
static getName() : string
getVersion()
public
getVersion() : string
isEnabled()
public
static isEnabled() : bool