Giter Club home page Giter Club logo

amyflash / gptphp Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ywtyltd/test

1.0 0.0 0.0 290 KB

本项目是最易部署的ChatGPT环境,想做点事情的创业者欢迎加群参与讨论!PHP版调用OpenAI最新接口和模型gpt-3.5-turbo进行问答的Demo,采用Stream流模式通信,一边生成一边输出,响应速度超过官网。前端采用JS的EventSource,支持Markdown格式解析,代码有着色处理。页面UI简洁,支持上下文连续会话。源码只有两三个文件,没用任何框架,支持所有PHP版本。只需要修改stream.php中的API_KEY即可使用,也可让浏览者使用自定义API_KEY

JavaScript 70.50% PHP 17.10% CSS 12.41%

gptphp's Introduction

2023-05-2更新版本日志:

  1. 增加了模型选择功能,支持gpt-3.5-turbo模型和gpt-4-1106-preview

2.首页加密 // 设置密码 require_once('MkEncrypt.php'); MkEncrypt('your code'); //page visit code


核心代码只有几个文件,没有用任何框架,修改调试很方便,只需要修改stream.php中的API_KEY和index.php里的访问密码(改成你自己的)即可使用。

部署好了可以放在公司内网,让同事们一起体验chatGPT的强大功能。也可以发到朋友圈分享,互联网技术大牛的形象直接拉满。

gptphp's People

Contributors

amyflash avatar ywtyltd avatar

Stargazers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.