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 EliasHaeussler\Typo3Solver\Configuration\Configuration¶
API to access all available extension configuration options.
- getAPIKey()¶
Get the configured OpenAI API key.
- Return type
string|null
- getModel()¶
Get the configured OpenAI model.
- Return type
string
- getMaxTokens()¶
Get the configured maximum number of tokens.
- Return type
int
- getTemperature()¶
Get the configured temperature.
- Return type
float
- getNumberOfCompletions()¶
Get the configured number of completions.
- Return type
int
- getCacheLifetime()¶
Get the configured cache lifetime.
- Return type
int
- isCacheEnabled()¶
Check whether solution caching is currently enabled. The cache is enabled if the configured cache lifetime is greater than
0
.- Return type
bool
- getProvider()¶
Get the configured solution provider.
- getIgnoredCodes()¶
Get the configured list of exception codes to ignore.
- Return type
array