Configuration API

In order to access the extension configuration, a slim PHP API exists. Each configuration option is accessible by an appropriate class method.

class Configuration
Fully qualified name
\EliasHaeussler\Typo3Solver\Configuration\Configuration

API to access all available extension configuration options.

getAPIKey ( )

Get the configured OpenAI API key.

returntype

string|null

getModel ( )

Get the configured OpenAI model.

returntype

string

getMaxTokens ( )

Get the configured maximum number of tokens.

returntype

int

getTemperature ( )

Get the configured temperature.

returntype

float

getNumberOfCompletions ( )

Get the configured number of completions.

returntype

int

getCacheLifetime ( )

Get the configured cache lifetime.

returntype

int

isCacheEnabled ( )

Check whether solution caching is currently enabled. The cache is enabled if the configured cache lifetime is greater than 0.

returntype

bool

getProvider ( )

Get the configured solution provider.

returntype

\EliasHaeussler\Typo3Solver\ProblemSolving\Solution\Provider\SolutionProvider

getPrompt ( )

Get the configured prompt.

returntype

\EliasHaeussler\Typo3Solver\ProblemSolving\Solution\Prompt\Prompt

getIgnoredCodes ( )

Get the configured list of exception codes to ignore.

returntype

array