Skip to content

Conversation

giladbarnea
Copy link

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
Copy link
Contributor

jeanlucthumm commented May 11, 2024

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
Copy link
Author

giladbarnea commented May 12, 2024

@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 (#561)

… or system message.

Raw mode increases flexibility by enabling responses similar to those obtained directly through the LLM's API.
@giladbarnea giladbarnea force-pushed the raw-mode branch 2 times, most recently from cfc2467 to 56b9666 Compare July 6, 2024 13:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants