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
9.76k stars 769 forks source link

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

Open jeanlucthumm opened 6 months ago

jeanlucthumm commented 6 months 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.