This is a simple Flask app that serves static files and includes a route for JSON responses. It is designed to demonstrate basic functionality and serve as a starting point for further development.
- Serves static files from the
/staticdirectory. - Includes a route to serve a static JSON file.
- Demonstrates a route that returns a JSON response.
- Python 3.x
- Flask
-
Clone the repository:
git clone https://github.com/lmxx1234567/chatgpt-plugin-starter-python.git
-
Navigate to the project directory:
cd chatgpt-plugin-starter-python -
Install the required dependencies:
pip install -r requirements.txt
-
Start the Plugin server:
python main.py
-
Access the following routes in your browser or through API requests:
/.well-known/ai-plugin.json- Displays the content of theai-plugin.jsonfile located in thestaticdirectory./static/*- Matches any file name and displays its content from thestaticdirectory./decorate- Returns a JSON response with the message "Hello World!".
- To modify the content of the
ai-plugin.jsonfile, update the file located in thestaticdirectory. - Add your own static files to the
staticdirectory and access them through the/static/*route. - Expand the functionality by adding more routes or modifying the existing ones in the
main.pyfile.
Contributions are welcome! If you find any issues or have suggestions for improvements, please create a new issue or submit a pull request.
This project is licensed under the MIT License.