Handles auth and prompts
- Clone this repo
- Copy
config.example.json
toconfig.json
- Edit the values in
config.json
- If you don't have 2captcha, you can edit the code to not use it. However, you need to get lucky that Auth0 won't give you a captcha.
- Install requirements
- Run app.py!
The server will be running on port 6000.
To give ChatGPT a prompt, you can POST /prompt
. Here is an example JSON body:
{
"id": "65c5f9f9-ad25-4e7a-8807-86e2805c8560",
"conversation": null,
"context": "",
"prompt": "Hi, how are you?"
}
The ID should be randomly generated. You may use context and conversation to keep a conversation.