Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

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

… or system message.

Raw mode increases flexibility by enabling responses similar to those obtained directly through the LLM's API.
@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)

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.

None yet

2 participants