Skip to content

Latest commit

 

History

19 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PromptPilot: An Ode to Refined Prompts

In the realm of the written word, there exists a whimsical tool known as PromptPilot. A wondrous creation to help you, my dear user, effortlessly produce effective ChatGPT prompts using the magical powers of GPT-5 mini. Like the conductor of an orchestra, PromptPilot harmonizes your intentions and fabricates a refined and targeted prompt, suited to your peculiar needs and aspirations.

PromptPilot

The Marvelous Features

  • A delightful interface, charmingly designed for your interactions with GPT-5 mini.
  • Ingenious prompt engineering techniques, ready to enhance your prompts.
  • Modern Python project structure using UV package manager.
  • OpenAI Responses API integration for improved performance.

Requirements

  • Python 3.12 or higher
  • UV package manager (recommended)

The Ritual of Installation

Using UV (Recommended)

  1. Install UV if you haven't already:

    curl -LsSf https://astral.sh/uv/install.sh | sh
  2. Clone this curious repository from the depths of the internet:

    git clone https://github.com/jaredkirby/PromptPilot.git
    cd PromptPilot
  3. Install dependencies and create virtual environment:

    uv sync
  4. Awaken the Streamlit app and summon its powers:

    uv run streamlit run src/promptpilot/app.py

Using pip (Alternative)

  1. Clone the repository:

    git clone https://github.com/jaredkirby/PromptPilot.git
    cd PromptPilot
  2. Create and activate a virtual environment:

    python -m venv .venv
    source .venv/bin/activate  # On Windows: .venv\Scripts\activate
  3. Install the package:

    pip install -e .
  4. Run the app:

    streamlit run src/promptpilot/app.py

The Art of Usage

  1. Confide your OpenAI API key to the sidebar, where it shall remain safe.
  2. Choose your desired model type from the dropdown menu (GPT-5 mini, GPT-4o, or GPT-4o-mini).
  3. Scribble your question or prompt in the text input field, like a love letter to the unknown.
  4. Behold the refined prompt, revealed to you in all its splendor.

Development

Running Tests

uv run pytest

Running Linter

uv run ruff check .
uv run ruff format .

Project Structure

PromptPilot/
├── src/
│   └── promptpilot/
│       ├── __init__.py      # Package initialization
│       ├── app.py           # Streamlit web application
│       ├── cli.py           # CLI entry point
│       ├── client.py        # OpenAI API client
│       └── prompts.py       # System prompts and examples
├── tests/
│   ├── __init__.py
│   ├── test_client.py       # Client module tests
│   └── test_prompts.py      # Prompts module tests
├── pyproject.toml           # Project configuration
└── README.md

The Enchanted Dependencies

  • OpenAI - For GPT-5 mini integration
  • Streamlit - For the beautiful web interface

Credits: A Standing Ovation

License: The Sacred Parchment

This project is protected under the mighty MIT License - delve into the LICENSE document for the enchanting details.

About

PromptPilot refines ChatGPT prompts using GPT-4 and prompt engineering techniques.

Topics

Resources

Stars

9 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages