Documentation

AI
in package

General helpers for AI system

Table of Contents

Constants

AI_CLASSES  : mixed = [\Sprout\Helpers\AI\OpenAiApi::class => 'OpenAi']
Available classes for AI.

Methods

classesAndMethod()  : array<string|int, mixed>
Get a list of endpoint methods available for each AI class
isEnabled()  : bool
Check if AI usage is enabled (class configured and return enabled)?

Constants

AI_CLASSES

Available classes for AI.

public mixed AI_CLASSES = [\Sprout\Helpers\AI\OpenAiApi::class => 'OpenAi']

Core config ai.enabled_class should be one of these values

Methods

classesAndMethod()

Get a list of endpoint methods available for each AI class

public static classesAndMethod() : array<string|int, mixed>
Return values
array<string|int, mixed>

isEnabled()

Check if AI usage is enabled (class configured and return enabled)?

public static isEnabled() : bool
Return values
bool
On this page

Search results