You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 13, 2023. It is now read-only.
I was trying to install you EdgeGPT API on a new server. This is what I have tried:
Installed the EdgeGPT: When composer show, I'll get: ihsandevs/php-edge-gpt 1.0.0 Bing AI Chatbot WebSocket API Wrapper for PHP. Its seems correct.
Then I created a test script:
_require(__DIR__ . '/vendor/autoload.php');
use Ihsandevs\EdgeGpt\Chatbot;
$bot = new Chatbot(__DIR__ . '/cookies.json');
// You can use the following conversation styles: CREATIVE, BALANCED, PRECISE. Or you can keep it empty.
$response = $bot->ask('What is a banana?', 'PRECISE');
echo $response->answer();_
I created json for the _U Cookie at DIR. '/cookies.json':
{"_U":"1CS-85M-FdJqj4Jnq6TC6cyj_KfdFnkT10IUbTTmy2NHvcdyhFKgvLh0yUEL85tPPLpeTwyz2Aerdhg58PGR1XpUDlop-yqQR1fZ7Ql4-b9oppGvSXxMFxTnt20haDRHKHh2WplIPCuPE1g21mUOk5J61_QHfaVVU0uF0XMNtIYUsQ_rR8lXxigmKhxwYjO8Zc9AQ1_os7HAZDzItp8oGLwz.............."}
When I try to run the script, I get this:
Fatal error: Uncaught Error: Class 'Ihsandevs\EdgeGpt\Chatbot' not found in //index.php:87 Stack trace: #0 {main} thrown in //index.php on line 87
Not sure why this isn't working. Any idea?
Regards,
K
The text was updated successfully, but these errors were encountered:
Hi Ishan,
I was trying to install you EdgeGPT API on a new server. This is what I have tried:
Installed the EdgeGPT: When composer show, I'll get: ihsandevs/php-edge-gpt 1.0.0 Bing AI Chatbot WebSocket API Wrapper for PHP. Its seems correct.
Then I created a test script:
{"_U":"1CS-85M-FdJqj4Jnq6TC6cyj_KfdFnkT10IUbTTmy2NHvcdyhFKgvLh0yUEL85tPPLpeTwyz2Aerdhg58PGR1XpUDlop-yqQR1fZ7Ql4-b9oppGvSXxMFxTnt20haDRHKHh2WplIPCuPE1g21mUOk5J61_QHfaVVU0uF0XMNtIYUsQ_rR8lXxigmKhxwYjO8Zc9AQ1_os7HAZDzItp8oGLwz.............."}
When I try to run the script, I get this:
Fatal error: Uncaught Error: Class 'Ihsandevs\EdgeGpt\Chatbot' not found in //index.php:87 Stack trace: #0 {main} thrown in //index.php on line 87
Not sure why this isn't working. Any idea?
Regards,
K
The text was updated successfully, but these errors were encountered: