PHP Fatal error: Uncaught Error: Class "Tectalic\OpenAi\Manager" not found #10
-
Hi, When I run the example PHP code from your website with my API key, I get the following error: PHP Fatal error: Uncaught Error: Class "Tectalic\OpenAi\Manager" not found in /var/www/html/scrape/chatgpt/test.php:3 What am I doing wrong? Any help is much appreciated. Wyatt |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hi there @wyatt121, Does your Please see the Usage section here.
If that doesn't help, please copy and paste your Thank you, James |
Beta Was this translation helpful? Give feedback.
Hi there @wyatt121,
Does your
test.php
script require/include the Composer autoloader file?Please see the Usage section here.
composer require tectalic/openai
require_once(__DIR__ . '/vendor/autoload.php');
If that doesn't help, please copy and paste your
test.php
file and include it here so we can see the code you're using.Thank you,
James