{"repo":"laigit-dot/talking-bot","free":true,"listed":false,"github":"https://github.com/laigit-dot/talking-bot","clone":"git clone https://github.com/laigit-dot/talking-bot.git","description":"A ChatGPT-like chatbot with PHP and Python","language":"PHP","stars":34,"topics":["ai","bot","chatgpt","php","docker","python"],"license":null,"category":"deployment-docker-iac","readme_excerpt":"ChatWTF This is a ChatGPT-like chatbot that uses the ChatGPT API. It was created for my YouTube channel. You can find the playlist of videos here. Quick Start 1. Clone the repository 2. Add your OpenAI API key to settings.php (see settings.sample.php ) 3. Start a server in public/ 4. Go to http://localhost:8080 Docker Note: If you get caught SIGWINCH, shutting down gracefully , add the -d flag to run it in the background. Database The chatbot uses PHP sessions to store the conversations by default. You can also use an SQL database. There is a SQLite dump and a MySQL dump in the db folder. You can install the SQLite version by running the install sqlite.php script. Database config has to be put into settings.php (see settings.sample.php ). You need to also change storage type to sql in the settings in order to use a database. API key You will need an API key from OpenAI to use the code. The API key must be added to the settings.sample.php file, which you will need to rename to settings.php . CodeInterpreter By default (when enabled from settings.php ), CodeInterpreter mode runs Python code directly on your machine but it asks for confirmation first. To enable a sandbox environment with Docker, change code interpreter sandbox enabled to true in settings.php and set code interpreter sandbox container to the name of the Python sandbox Docker container. You can create such a sandbox container by running: Note that the sandbox doesn't work (and might not be needed) if you're alread","default_branch":null,"files":null,"tree":[],"storefront":"/r/laigit-dot","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/laigit-dot/talking-bot/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}