GithubHelp home page GithubHelp logo

lmzxtek / chat-api Goto Github PK

View Code? Open in Web Editor NEW

This project forked from xiaoxinyo/chat-webapi

0.0 0.0 0.0 28 KB

一款基于Python-FastAPI框架,开发的多种Chat接口程序.

License: MIT License

Python 98.92% Dockerfile 1.08%

chat-api's Introduction

提示

  1. 升级咯,此仓库前身为Bing-Chat,现已更名为Chat-API,支持多种Chat,现已支持ChatGPT,Bing Chat,Bard,文心一言.
  2. 若报错,请先将ChatGPT,EdgeGPT,BingImageCreator,GoogleBard,easy-ernie更新到最新版本.
  3. 已知New Bing,文心一言有封号风险.

Release

介绍

一款基于Python-FastAPI框架,开发的多种Chat接口程序.

需求

  1. 语言: Python3.8+.
  2. 包: fastapi,python-multipart,uvicorn,asyncio,EdgeGPT,BingImageCreator,GoogleBard,easy-ernie
  3. 其他: New Bing账户,Bard账户,文心一言账户.

配置(config.py)

进入文件查看.

Cookie(cookie/)

  1. 浏览器安装Cookie-Editor扩展.
  2. 访问Bing Chat/Bard/文心一言.
  3. 在页面中点击扩展.
  4. 点击扩展右下角的Export-Export as JSON
  5. 将复制的内容粘贴到对应的Cookie文件.

部署

  1. Windows: 运行main.py.
  2. Linux: 执行gunicorn main:APP -c gunicorn.py.
  3. 支持Docker.

接口文档

查看Wiki.
提示: 在使用Chat前,请确保对应的Cookie已配置好,ChatGPT密钥需要在config.py文件中写.

chat-api's People

Contributors

xiaoxinyo 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.