/ChatGPT-You.com-API

This is a simple API for ChatGPT from scrapping API you.com

Primary LanguageJavaScript

ChatGPT-You.com-API

ChatGPT-You.com-API

This is a simple API for ChatGPT from scrapping API you.com

Goal

  • Create API for ChatGPT from scrapping API you.com

  • Create a multi-task chat using uid in the URL route

  • Etc. You can contribute to this project by creating an issue or pull request

Installation

git clone https://github.com/IhsanDevs/ChatGPT-You.com-API.git
cd ChatGPT-You.com-API
npm install
cp chats.json.example chats.json

Usage

npm start

visit http://localhost:3000/?question=hello

API

GET {url}?question={question}

Example

curl {url}?question=hello

Response

{
    "markdown": string,
    "html": string,
}

GET {url}/histories

Example

curl {url}/histories

Trick

If you want to create long-generated text, you can use this trick

curl {url}?question=next

Response

The server will return rendered HTML from chat histories in chats.json

License

MIT

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change. Please make sure to update tests as appropriate.

Credits