shell_gpt icon indicating copy to clipboard operation
shell_gpt copied to clipboard

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

Open giladbarnea opened this issue 1 year ago • 2 comments

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

giladbarnea avatar May 02 '24 10:05 giladbarnea

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

jeanlucthumm avatar May 11 '24 21:05 jeanlucthumm

@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)

giladbarnea avatar May 12 '24 08:05 giladbarnea