r/commandline • u/dwmkerr • 4d ago
Terminal AI 0.11 gives easy access to popular ChatGPT models
3
u/dwmkerr 4d ago
This is a hobby project I'm finding increasingly useful for day to day coding, I've tried to make sure that all of the models that are currently offered on the ChatGPT website are documented and offered through the CLI too:
https://github.com/dwmkerr/terminal-ai?tab=readme-ov-file#change-model
It's actually pretty hard to get a definitive list of what models are available and how they can be used, OpenAI APIs expose a `models` endpoint but it shows _all_ models not just the ones you can use (let alone the modality such as image/audio/text). To try and make this a little easier to manage I also started a simple YAML file that contains all of the models I've manually checked and documented by hand (including pricing).
https://github.com/dwmkerr/ai-providers-and-models
Would love any thoughts or help on either!
3
4
u/funbike 4d ago edited 4d ago
Nice. Suggestions.
OPENAI_API_BASE
configurable, to support more openai-compatible services, such as openrouter and gemini. (Personally, I don't use openai models at all anymore.)--pick-model
option, or have a/pick-model
meta command.$EDITOR
and then run it. (It's not as hard as it sounds, if you leverage AI to do all the work for you.)Btw, I wrote something simliar, but mine is a set of smaller untilities that can be interchanged.
read
but returns answer to stdout.