Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/franciscohanna92/chatgpt-server
A simple server written in NodeJS that uses Playwright to interact with ChatGPT
https://github.com/franciscohanna92/chatgpt-server
Last synced: about 1 month ago
JSON representation
A simple server written in NodeJS that uses Playwright to interact with ChatGPT
- Host: GitHub
- URL: https://github.com/franciscohanna92/chatgpt-server
- Owner: franciscohanna92
- Created: 2022-12-04T23:40:00.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2022-12-05T00:39:18.000Z (about 2 years ago)
- Last Synced: 2023-03-09T20:11:19.725Z (almost 2 years ago)
- Language: HTML
- Size: 138 KB
- Stars: 1
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ChatGPT Server for Node.js
This is a NodeJS server for [ChatGPT](https://chat.openai.com/chat). It uses Playwright to send and get messages.
## Installation
```bash
npm install
```## Usage
```bash
npm start
```A Chromium browser will open with the ChatGPT home page. Login with your OpenAI account. Then, return to the temrinal and press `Enter`. The server will start on port `5001`.
Make a request:
```bash
curl http://localhost:5001/api/chat?prompt=Hello
```Response is `text/html`. For example:
```html
Hi there! Is there something you need help with? I'm a large language model
trained by OpenAI, and I can assist you with a wide range of topics. Let me
know if you have any questions or need any information. I'll do my best to
help!
```## Demo client implementation
Visit http://localhost:5001 on your browser for a demo client implementation (`index.html`)
Enjoy!