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

FORCE_USER_ROLE option to force api calls to use role:user instead of role:system #567

Open odrevet opened 6 months ago

odrevet commented 6 months ago

When using OpenAI compatible API like textgen webui some models do not support role:system in API calls, thus ignoring completely instructions how to behave and will add markdown in shell mode. This PR adds a config option FORCE_USER_ROLE to use in this scenario