gpt.py

I have many thoughts about ChatGPT—too many to write here. But I have been trying to understand the tech a bit more and getting a sense of its limitations and strengths.

I wrote a commandline tool that I think is pretty handy. It's a minimal wrapper around OpenAI's completions API that allows for easily switching up the system prompt.

You'll need an OpenAI API key (exported as OPENAI_API_KEY) to use this script.

Feel free to use it however you like: https://abstract.properties/misc/gpt.py

Here's how you could install it and use it: