gustabin/chatgpt-php 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

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

  1. Clone this repository.
  2. Open the index.html file in your web browser.
  3. 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

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

GitHub 信息

  • Stars: 3
  • Watchers: 2
  • Forks: 0
  • 开发语言: HTML

其他信息

  • 授权协议: MIT
  • 更新时间: 2023-07-19