gpt-cli
gpt-cli copied to clipboard
Conditionally loaded modules
Having access to all of the best APIs in one CLI is awesome! 🚀 I've been thinking of how we could overcome the downsides:
- 2 seconds from run to API from all of the imports
- If I just want a CLI to OpenAI, the setup of llama.cpp is a bit overkill
- Each module will introduce idiosyncrasies like
google-generativeaimandating Python 3.9+ (https://github.com/kharvd/gpt-cli/issues/29)
What if we conditionally load modules, based on the presence of OPENAI_API_KEY or config file?
That sounds very reasonable, wanna try making a PR?
Heads up I made Llama optional here: https://github.com/kharvd/gpt-cli/pull/46/