TheR1D / shell_gpt

A command-line productivity tool powered by AI large language models like GPT-4, will help you accomplish your tasks faster and more efficiently.
MIT License
8.81k stars 693 forks source link

`--create-role` should allow empty role descriptions #561

Open jeanlucthumm opened 1 month ago

jeanlucthumm commented 1 month ago

This came up in https://github.com/TheR1D/shell_gpt/pull/557

Right now if you do sgpt --create-role empty and you just Enter on this prompt:

Enter role description:

It doesn't let you go through.

If you write "" then it creates a role like this which is also bad:

{"name": "empty", "role": "You are empty\n\"\""}

Big problem though, markdown output is dependent on whether the words APPLY MARKDOWN are in the role, so markdown enabled completely empty roles are not possible.