Bridge to the ChatGPT via Selenium
First of all you should create .env
file. You can see required variables in env.sample
Then run the bridge with uvicorn
. Example:
cd bridge
uvicorn openai_bridge:fast_api --port 8001
After that you'll be able to open page http://127.0.0.1/docs
and play with API. Currently there is 3 endpoints that you can use.
Request format:
{
"question": "your question here"
}
Response format:
"network answer here"
Request body is empty.
Response body is empty.
Request body is empty.
Response format:
true
You can see example usage of this API in the tg_bot
directory.
This project was made just for fun, so the code may not be perfect. Any suggestions are welcome!