GithubHelp home page GithubHelp logo

onejustone / chatapi-single Goto Github PK

View Code? Open in Web Editor NEW

This project forked from bytemate/chatapi-single

1.0 0.0 0.0 75 KB

Simple and powerful ChatGPT-API-Server

Shell 4.63% TypeScript 86.09% Dockerfile 9.28%

chatapi-single's Introduction

Welcome to chatgpt-api-single ๐Ÿ‘‹

Version License: MIT Twitter: fuergaosi

Chatgpt-api-single is a simple, easy-to-use API server that comes with a queueing capability to prevent large-scale failures due to excessive access. It has a simple encapsulation and comes with a Dockerfile, so all you need to do is modify the environment variables to get started. ๐Ÿ‘

Quick Start

docker run -d --name chatgpt-api-single -p 4000:4000 -v /home/ubuntu/chatapi-single/data:/app/data -e EMAIL=<YourOpenAIAccount> -e PASSWORD=<YourOpenAIAccountPassword> ghcr.io/bytemate/chatapi-single:main

Config

cp .env.example .env

Modify the environment variables in .env

# Require
EMAIL=<Your Email>
# Require
PASSWORD=<Your Password>
IS_PRO_ACCOUNT=false
MARKDOWN=false
DEBUG=false
IS_GOOGLE_LOGIN=false
IS_MICROSOFT_LOGIN=false
MINIMIZE=false
CAPTCHA_TOKEN=
NOPECHA_KEY=
EXECUTABLE_PATH=
PROXY_SERVER=
USER_DATA_DIR=

Install

npm i

Usage

npm run start

How to use

OneTime Message

curl -X "POST" "http://localhost:4000/message" \
     -H 'Content-Type: application/json; charset=utf-8' \
     -d $'{
  "message": "Hello"
}'

Session Message

curl -X "POST" "http://localhost:4000/message/holegots" \
     -H 'Content-Type: application/json; charset=utf-8' \
     -d $'{
  "message": "Hello"
}'

Author

๐Ÿ‘ค Holeogts

Show your support

Give a โญ๏ธ if this project helped you!


This README was generated with โค๏ธ by readme-md-generator

chatapi-single's People

Contributors

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