mbchaves / chatgpt

PHP ChatGPT clone. Php, java script, css. Easily installed on any web server. Only 1 file to setup. You can see the demo site below.

Home Page:https://autofm.ru

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Version ChatGPT 3.5 turbo

Need PHP version 7 or 8.

  1. Download and unzip arhiv.

  2. Upload to web server via ftp client.

  3. 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):

  1. Go to path static/js/pref.js,

  2. Change text if needed.

  3. 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:

chatgpt php

chatgpt php

Last update - added option to save chat. It is bound to the client's browser by localStorage.

About

PHP ChatGPT clone. Php, java script, css. Easily installed on any web server. Only 1 file to setup. You can see the demo site below.

https://autofm.ru

License:BSD 2-Clause "Simplified" License


Languages

Language:CSS 36.9%Language:PHP 31.4%Language:JavaScript 19.2%Language:HTML 12.6%