This is a sample repo for developing OpenAI plugin using the FastAPI framework.
If you have access to GitHub Copilot, try it out to help you write code faster. To run the app, run uvicorn main:app
from the comman line
To run tests, just run pytest
-
main.py
is the code for the API plugin. (✨ Tip: Generate the code using Copilot. The following is an example prompt to use in the Copilot chat view (Ctrl+Alt+I
) (learn more).) -
openapi.yaml
is a specification that dictates how to define the schema of the API.
ai-plugin.json
is a JSON manifest file that defines relevant metadata for the plugin. Learn more in the OpenAI docs.
- GPT-4 -> Plugin store -> Develop your own plugin
- Provide domain as localhost:8000