Join the ChatGPT plugins waitlist here!
D2COpenAIPlugin is a plugin for ChatGPT that enables users to generate diagrams using PlantUML or Mermaid. This plugin enhances the capabilities of ChatGPT by providing a seamless way to create diverse and creative diagrams.
- Generate diagrams using PlantUML or Mermaid
- Seamless integration with ChatGPT
- User-friendly interface for creating diagrams
- Enhances the versatility of ChatGPT
Before using the plugin, make sure to have the following prerequisites installed:
- Python 3.6+
- FastAPI
- uvicorn
- Install Python 3.10, if not already installed.
- Clone the repository:
git clone https://github.com/antoinebou12/D2COpenAIPlugin.git
- Navigate to the cloned repository directory:
cd /path/to/D2COpenAIPlugin
- Install poetry:
pip install poetry
- Create a new virtual environment with Python 3.10:
poetry env use python3.10
- Activate the virtual environment:
poetry shell
- Install app dependencies:
poetry install
- Create a bearer token
- Set the required environment variables:
To install the required packages for this plugin, run the following command:
pip install -r requirements-dev.txt
To run the plugin, enter the following command:
python app.py
Once the local server is running:
uvicorn app:app --host 127.0.0.1 --port 5003
- 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:5003
since this is the URL the server is running on locally, then select "Find manifest file".
The plugin should now be installed and enabled! You can start with a question like "What is on my todo list" and then try adding something to it as well!
To test a locally hosted plugin in ChatGPT, follow these steps:
- Run the API on localhost:
poetry run dev
- Follow the instructions in the Testing a Localhost Plugin in ChatGPT section of the README.
For more detailed information on setting up, developing, and deploying the ChatGPT Retrieval Plugin, refer to the full Development section below.
If you run into issues or have questions building a plugin, please join our Developer community forum.