GPT-3 prompt testing and experimentation
Top 49.7% on sourcepulse
This repository provides a collection of test prompts and unedited AI-generated texts from OpenAI's GPT-3 API, showcasing the model's capabilities and limitations. It's designed for researchers, developers, and users experimenting with large language models who want to explore prompt engineering and observe raw model outputs.
How It Works
The project leverages OpenAI's GPT-3 API, specifically the davinci
model. It systematically tests prompts across various temperatures (0.0 for deterministic output, 0.7, 1.0, and 1.2 for increasing creativity) to generate up to 512 tokens per text. The collected outputs are stored unedited, allowing for direct analysis of the model's responses.
Quick Start & Requirements
pip3 install httpx pyyaml fire tqdm
config.yml
with your OpenAI API secret key.python3 openai_api.py "Your prompt"
or python3 openai_api.py "path/to/prompt.txt"
Highlighted Details
Maintenance & Community
Maintained by Max Woolf (@minimaxir), whose work is supported via Patreon and GitHub Sponsors.
Licensing & Compatibility
MIT License. Compatible with commercial use.
Limitations & Caveats
The script uses synchronous requests with a 30-second delay between API calls to avoid straining OpenAI's infrastructure. Generated text may be offensive and is uncurated.
5 years ago
Inactive