Version ChatGPT 3.5 turbo
Need PHP version 7 or 8.
-
Download and unzip arhiv.
-
Upload to web server via ftp client.
-
Put your AI API key in file "chat.php".
$chat = new ChatGPT([ 'api_key' => 'Your open ai api key ', ]);
If you want change text on the splash screen at first startup (it is shown to the user only once):
-
Go to path static/js/pref.js,
-
Change text if needed.
-
Go to index.html by browser and enjoy.
Used frontpage html and css from this project https://github.com/xtekky/chatgpt-clone
Used php classes from this project https://github.com/qiayue/php-openai-gpt-stream-chat-api-webui
Work same as python version xtekky, but no have functions web search and choose model, temperature.
Button web search changed to Light or Dark theme.
You can see interface on screenshots files:
Last update - added option to save chat. It is bound to the client's browser by localStorage.