Git Product home page Git Product logo

webapp's Introduction

chatGPT网页自部署版

2023.3.2更新,支持AI绘画

安装

使用docker-compose部署,请先安装docker-compose

# 克隆
git clone https://github.com/hyy22/chatgpt_webapp
# 切换目录
cd chatgpt_webapp
# 修改docker-compose配置,主要填写CHATGPT_ACCESS_TOKEN,可以在https://chat.openai.com/api/auth/session获取,有效期为2周。OPENAI_KEY是openAI的key,在https://platform.openai.com/account/api-keys获取
# 部署
docker-compose up -d
# 部署完成即可通过http://localhost:18080访问

截图

初始状态 会话状态

说明

前端采用react+antd-mobile+sse编写

服务端采用python+flask编写

chatGPT库采用https://github.com/acheong08/ChatGPT

问题汇总

有时候无法拿到chatGPT的回复

猜测可能是网络问题,或者chatGPT官方鉴权失败导致,暂时没有好的解决方案。目前处理方法是报错,稍后再试,有好的方案欢迎pr

webapp's People

Contributors

wrhsd1 avatar hyy22 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.