Git Product home page Git Product logo

chuanhuchatgpt's Introduction

截屏2023-03-03 13 59 46

川虎 ChatGPT

为ChatGPT API提供了一个Web图形界面。在Bilibili上观看视频教程

截屏2023-03-04 11 18 12

功能

  • 重试对话,让ChatGPT再回答一次。
  • 优化Tokens,减少Tokens占用,以支持更长的对话。
  • 设置System Prompt,有效地设定前置条件
  • 保存/加载对话历史记录

使用技巧

  • 使用System Prompt可以很有效地设定前提条件
  • 对于长对话,可以使用“优化Tokens”按钮减少Tokens占用。
  • 如果部署到服务器,将程序最后一句改成demo.launch(server_name="0.0.0.0", server_port=99999)。其中99999是端口号,应该是1000-65535任意可用端口,请自行更改为实际端口号。
  • 如果需要获取公共链接,将程序最后一句改成demo.launch(share=True)。注意程序必须在运行,才能通过公共链接访问

安装方式

填入你的 OpenAI API 密钥

SCR-20230302-sula

安装依赖

pip install -r requirements.txt

如果报错,试试

pip3 install -r requirements.txt

如果还是不行,请先安装Python

如果下载慢,建议配置清华源,或者科学上网。

启动

python ChuanhuChatbot.py

如果报错,试试

python3 ChuanhuChatbot.py

如果还是不行,请先安装Python

或者,使用Docker 安装与运行

构建镜像

docker build -t chuanhuchatgpt:latest .

一键运行

docker run -d --name chatgpt -e my_api_key="替换成API"  --network host chuanhuchatgpt:latest

查看本地访问地址

docker logs chatgpt

chuanhuchatgpt's People

Contributors

gaizhenbiao avatar mzhao-ouo avatar iskoldt-x avatar chenhengjie123 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.