HybridTales Plugin for ChatGPT
I have moved this project over to https://github.com/cybershrapnel/HybridTales and I will be leaving this repo up as is as an educational repo for people to get started with plugins. Head on over to the new repo for the cool stuff. I didn't want to complicate this simple demo.
How to install the plugin on OpenAI ChatGPT
And then make sure you enable the plugin after installation.
Clone this git into your desired location.
To install the required packages for this plugin, run the following commands to create a virtual environment and install the packages:
python -m venv venv
venv\Scripts\activate.bat
pip install -r requirements.txt
To run the plugin, enter the following command:
hypercorn main:app --bind 0.0.0.0:443 --certfile certificate.crt --keyfile private.key --log-level debug
or use uvicorn for localhost testing (can also use hypercorn with ssl on localhost)
uvicorn main:app --reload
To relaunch your server from a new window you will need to reactivate your virtual Python space.
Simply type:
venv\Scripts\activate.bat
Once the local server is running:
- Navigate to https://chat.openai.com.
- In the Model drop down, select "Plugins" (note, if you don't see it there, you don't have access yet).
- Select "Plugin store"
- Select "Develop your own plugin"
- Enter in
localhost:443
if testing local or your domain name if live. Then select "Find manifest file". - Must have SSL certs installed. I suggest getting a free 3-month ssl cert from zerossl for testing and experimentation. *** You can run on port 8000 or 443 with some slight changes to code without ssl but I would not recoment it and it's easier to just setup the ssl from the start as this is setup for it. Comment out line in file and comment the other one. This git is setup to run a localhost or a domain on port 443 for https access as required by OpenAI Plugins. You can use localhost without ssl only.
The plugin should now be installed and enabled! You can start with a question like "What is on my todo list" or "create a random story and add it to the stories list" and then try adding something to it as well! You can simply ask to see either list.
NanoCheeZe MEQUAVIS HybridTales API
You can access the API documentation and make queries using Swagger. Follow the steps below to get started:
- You can run the project locally or from your domain to access the API. The API is interactive.
- Open your web browser and visit http://localhost/docs. (or your domain instead of localhost)
- On the API page, you'll find an interactive interface that allows you to explore and test the different API routes and endpoints.