Meta Prompt Word Generator V2
Meta Prompt Word Generator is a Gradio-based web application that generates prompt word templates for AI models. It supports the meta-prompt word implementation of Claude and OpenAI, and can generate corresponding prompt word templates based on the task description and variables entered by the user.
Online experience
You can experience meta prompt word generator online via the following link:
Online experience meta prompt word generator
Functional Features
- Metaprompt word implementation that supports Claude and OpenAI
- Customizable task descriptions and variables
- Automatically process and extract variables
- Supports provision of API keys and other configurations through environment variables or user input
- Friendly web interface, supports real-time generation of prompt word templates
Install
- Clone the repository:
git clone https://github.com/anarchysaiko/metapromptgeneratorV2.git
cd metapromptgeneratorV2
- Installation dependencies:
pip install -r requirements.txt
How to use
- Set environment variables (optional):
export MODEL_NAME= " your_model_name "
export API_KEY= " your_api_key "
export BASE_URL= " your_api_base_url "
- Run the application:
Open the displayed URL in the browser (usually http://127.0.0.1:7860 ).
In the web interface:
- Enter a task description
- Enter variables (optional, separated by English commas)
- Select Metaprompt implementation (Claude or OpenAI)
- If no environment variable is set, fill in the model name, API key, and API basic URL
- Click the "Generate Prompt Word" button
Wait for the result to be generated (may take 1-2 minutes)
View generated prompt word templates and extracted variables
Things to note
- Please keep sensitive information such as API keys and do not upload them to public repositories.
- The generation process may take some time, please be patient
- If you encounter a problem, please check the log information output by the console
contribute
Welcome to submit Issues and Pull Requests to help improve this project.
license
This project adopts a MIT license.