gustabin/chatgpt-php
Composer 安装命令:
composer create-project gustabin/chatgpt-php
包简介
Chatbot using openai API chatgpt in PHP
README 文档
README
Description
This is a simple chatbot that uses the OpenAI API to generate responses based on user-input messages. The chatbot is capable of generating coherent and relevant text, maintaining conversation context, and performing specific tasks.
Usage
- Clone this repository.
- Open the
index.htmlfile in your web browser. - Interact with the chatbot by entering messages in the input field and clicking "Send."
Files
index.html: Main file containing the chatbot's interface.chat.js: Script for the chat's functionality.chatApi.js: Script to make requests to the OpenAI API and obtain chatbot responses.chatHistory.js: Chat history to keep a record of conversations.chat.php: PHP file to process chatbot requests to the OpenAI API.
Credits
- Author: Ing. Gustavo Arias
- Website: Stack code lab
Notes
Free preview. ChatGPT may produce inaccurate information about people, places, or facts.
License
This project is under the MIT License. See the LICENSE file for more details.
Installation
composer create-project gustabin/chatgpt-php
统计信息
- 总下载量: 14
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 3
- 点击次数: 1
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2023-07-19