Skip to content

functions_modules_ai

Daniel Spors edited this page Nov 14, 2024 · 1 revision

Functions in file modules/ai.php

ai_init

Initializes the AI module

Definition: public function ai_init()

Returns: void

ai_predict

Creates a AI based prediction.

Definition: public function ai_predict($prompt, $options, $cache=false)

Returns: mixed

Parameters:

  • mixed $prompt Prompt for the AI engine

  • mixed $options Optional options

  • mixed $cache if true, cache the result for a while (default: false)

Clone this wiki locally