matdombrock / sllm

A command line interface for the OpenAI LLMs.
https://www.npmjs.com/package/sllm
GNU General Public License v3.0
39 stars 3 forks source link

Add a "launch session" or "start chatting" or similar #2

Open black-fake opened 1 year ago

black-fake commented 1 year ago

It would be nice to run one command where you can actively chat via sllm without typing the command every time.

instead of:

$ sllm this is a question
example response
$ sllm this is another question
example response

something like this would be nice:

$ sllm
> this is a question
example response
> this is another question
example response

To exit this "chat" maybe exit or Ctrl+D could be used (as for the standards)

matdombrock commented 1 year ago

@black-fake This is a good idea.

The main use case for me right now is mostly using this to get one off answers to questions I have an not as an actual chat bot. However it would be possible to add a mode like this if that's something people would find useful.

On the other hand, the ChatGPT API is out now, so this kind of functionality might actually be better served from that API instead of GPT3.

The other thing to consider would be if the command options (for stuff like loading in files etc) could still work in this mode.

Something to think about for sure.