Luminova Framework

PHP Luminova: Artificial Intelligence Models Configuration

Last updated: 2024-08-28 21:19:50

The FileDelivery class simplifies secure file delivery from a private storage location to the user's web browsers including generating temporal URLs for file previews.

These properties serve as essential configurations needed to set up before using OpenAI APIs to interact with AI models.


  • 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).Currently only OpenAI is supported.

public string $handler = 'OpenAI';

apiKey

Your AI provider's API key (Required).To register an account on the OpenAI platform and receive an API key, visit https://platform.openai.com/.

public string $apiKey = '';

organization

Optionally set your OpenAI Organization ID.

public ?string $organization = null;

Reference


project

Optionally set your OpenAI Project ID.

public ?string $project = null;

version

Optionally set your OpenAI API version (default: v1).

public string $version = 'v1';