Giter Club home page Giter Club logo

chatgpt-web-3's Introduction

chatgpt-web

使用官方ChatGPT API实现简单HTML网页版在线聊天(基于此项目调整而来)

该版本基于OPENAI ChatGPT API开发(付费),想使用ChatGPT(免费)的请访问chatgpt-html

特性

  • 文件结构简单,主要面向小白用户
  • 功能不多,但核心的连续对话、多用户会话隔离、markdown格式输出都具备

部署

获取OpenAI API KEY

配置

从源码配置

使用Docker Compose

以下所有文件放同一目录

  • 新建.env配置文件,粘贴以下内容并保存
OPENAI_API_KEY="前面你获取到的OpenAI API KEY"
  • 新建docker-compose.yml配置文件,粘贴以下内容并保存
services:
  chatgpt:
    image: sheepgreen/chatgpt-web
    container_name: webchat
    volumes:
      - ./.env:/chatgpt-web/.env
#      - ./chat.html:/chatgpt-web/templates/chat.html #默认内置我的UI,如需替换自用网页请取消注释,需与docker-compose.yml文件在同一目录
    ports:
      - "8888:8088" #8088为容器内部端口,不可更改;8888为外部映射端口,可自行更改
    restart: always
  • 输入docker-compose up -d即启动成功

注意事项

  • 访问地址为http://ip:port/chat
  • 修改chat.html文件后,需要docker restart webchat才能生效

其他相关

chatgpt-web-3's People

Contributors

slippersheepig avatar minguncle 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.