linshen c2b97b652b refactor(ui): 优化弹窗组件的点击关闭逻辑
-移除了 ModelManager 组件中不必要的 @click 事件处理
- 修改了 TemplateManager 组件中的 @click 事件处理,仅在查看模板时触发关闭
- 这些更改提高了用户体验,避免了在编辑模型或模板时意外点击导致的关闭
2025-03-22 21:41:40 +08:00
2025-03-07 23:59:47 +08:00
2025-02-28 00:14:29 +08:00

Prompt Optimizer 🚀

📖 Project Introduction

Prompt Optimizer is a powerful AI prompt optimization tool that helps you write better AI prompts and improve the quality of AI outputs. It supports both web application and Chrome extension usage.

🎥 Feature Demonstration

Feature Demonstration

✨ Core Features

  • 🎯 Intelligent Optimization: One-click prompt optimization with multi-round iterative improvements to enhance AI response accuracy
  • 🔄 Comparison Testing: Real-time comparison between original and optimized prompts for intuitive demonstration of optimization effects
  • 🔄 Multi-model Integration: Support for mainstream AI models including OpenAI, Gemini, DeepSeek, etc., to meet different needs
  • 🔒 Secure Architecture: Pure client-side processing with direct data interaction with AI service providers, bypassing intermediate servers
  • 💾 Privacy Protection: Local encrypted storage of history records and API keys to ensure data security
  • 📱 Multi-platform Support: Available as both a web application and Chrome extension
  • 🎨 User Experience: Clean and intuitive interface design with responsive layout and smooth interaction effects
  • 🌐 Cross-domain Support: Edge Runtime proxy for cross-domain issues when deployed on Vercel (may trigger risk control from some providers)

🚀 Quick Start

  1. Direct access: https://prompt.always200.com
  2. Or one-click deploy to your own Vercel: Deploy with Vercel

2. Install Chrome Extension

  1. Install from Chrome Web Store (may not be the latest version due to approval delays): Chrome Web Store
  2. Click the icon to open the Prompt Optimizer

3. Docker Deployment

# Run container (default configuration)
docker run -d -p 80:80 --restart unless-stopped --name prompt-optimizer linshen/prompt-optimizer

# Run container (with API key configuration)
docker run -d -p 80:80 \
  -e VITE_OPENAI_API_KEY=your_key \
  --restart unless-stopped \
  --name prompt-optimizer \
  linshen/prompt-optimizer

⚙️ API Key Configuration

  1. Click the "⚙️Settings" button in the upper right corner
  2. Select the "Model Management" tab
  3. Click on the model you need to configure (such as OpenAI, Gemini, DeepSeek, etc.)
  4. Enter the corresponding API key in the configuration box
  5. Click "Save"

Supported models:

  • OpenAI (gpt-3.5-turbo, gpt-4)
  • Gemini (gemini-2.0-flash)
  • DeepSeek (DeepSeek-V3)
  • Custom API (OpenAI compatible interface)

Method 2: Via Environment Variables

Configure environment variables through the -e parameter when deploying with Docker:

-e VITE_OPENAI_API_KEY=your_key
-e VITE_GEMINI_API_KEY=your_key
-e VITE_DEEPSEEK_API_KEY=your_key
-e VITE_SILICONFLOW_API_KEY=your_key
-e VITE_CUSTOM_API_KEY=your_custom_api_key
-e VITE_CUSTOM_API_BASE_URL=your_custom_api_base_url
-e VITE_CUSTOM_API_MODEL=your_custom_model_name 

Local Development

For detailed documentation, see Development Documentation

# 1. Clone the project
git clone https://github.com/linshenkx/prompt-optimizer.git
cd prompt-optimizer

# 2. Install dependencies
pnpm install

# 3. Start development server
pnpm dev               # Main development command: build core/ui and run web app
pnpm dev:web          # Run web app only
pnpm dev:fresh        # Complete reset and restart development environment

🗺️ Roadmap

  • Basic feature development
  • Web application release
  • Chrome extension release
  • Custom model support
  • Multi-model support optimization
  • Internationalization support

For detailed project status, see Project Status Document

Star History

Star History Chart

🤝 Contributing

  1. Fork the repository
  2. Create a feature branch (git checkout -b feature/AmazingFeature)
  3. Commit your changes (git commit -m 'Add some feature')
  4. Push to the branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

Tip: When developing with Cursor tool, it is recommended to do the following before committing:

  1. Use the "CodeReview" rule for review
  2. Check according to the review report format:
    • Overall consistency of changes
    • Code quality and implementation method
    • Test coverage
    • Documentation completeness
  3. Optimize based on review results before submitting

👏 Contributors

Thanks to all the developers who have contributed to this project!

Contributors

📄 License

This project is licensed under the MIT License.


If this project is helpful to you, please consider giving it a Star ⭐️

👥 Contact Us

  • Submit an Issue
  • Create a Pull Request
  • Join the discussion group
S
Description
An AI prompt optimizer for writing better prompts and getting better AI results.
https://prompt.always200.com
Readme AGPL-3.0
45 MiB
0 Stars 1 Watchers 0 Forks
Languages
TypeScript 71.9%
Vue 21.6%
JavaScript 5.2%
CSS 1.1%