This is a simple API for ChatGPT from scrapping API you.com
-
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
git clone https://github.com/IhsanDevs/ChatGPT-You.com-API.git
cd ChatGPT-You.com-API
npm install
cp chats.json.example chats.json
npm start
visit http://localhost:3000/?question=hello
curl {url}?question=hello
{
"markdown": string,
"html": string,
}
curl {url}/histories
If you want to create long-generated text, you can use this trick
curl {url}?question=next
The server will return rendered HTML from chat histories in chats.json
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.