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

"Raw" (e.g. "No-role") mode to simply call GPT as-is without a specific role or system message. #557

Open giladbarnea opened 2 months ago

giladbarnea commented 2 months ago

Added a -r, --raw option to use the LLM as-is without a specific role or system message.

Raw mode increases flexibility by enabling responses similar to those obtained directly through the LLM's API.

Discussion: #551

jeanlucthumm commented 1 month ago

You can create a custom role that's empty:

{"name": "empty", "role": ""}

Unfortunately whether or not it uses markdown is dependent on the role description, so if you want that use this:

{"name": "empty", "role": "APPLY MARKDOWN"}

Then you can do

sgpt --role empty

The roles are stored in the config dir, e.g. ~/.config/shell_gpt/roles

giladbarnea commented 1 month ago

@jeanlucthumm thanks! Your suggestion would do the job but feels to me more like a workaround, and specifying --role empty to me would feel less organic than sgpt -r .... If it involved less development effort, it would arguably be more worthwhile, but it too doesn't work out of the box (https://github.com/TheR1D/shell_gpt/issues/561)