PHP Luminova: Artificial Intelligence & Models Configuration
Set up and manage AI models used in your application — choose models, define behavior, and customize how your app interacts with AI services.
These settings define the core options you need to configure before using the Luminova\Ai\Models\OpenAI API to work with AI models. Make sure this class is properly set up to avoid authentication or request issues.
Class Definition
- Class namespace:
\App\Config\AI - File path:
/app/Config/AI.php - This class is marked as final and can't be subclassed
Properties
handler
The AI handler class (default: OpenAI).
public string $handler = 'OpenAI';Currently only
OpenAIis supported.
apiKey
API key for authenticating OpenAI requests.
To register an account on the OpenAI platform and receive an API key, visit https://platform.openai.com/.
public string $apiKey = '';organization
OpenAI organization ID (if your account belongs to one) (e.g, org-xxxx).
public ?string $organization = null;Reference
project
Optional, OpenAI project ID to group API usage.
public ?string $project = null;version
OpenAI API version to use (default: v1).
public string $version = 'v1';