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

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

Open odrevet opened 1 month ago

odrevet commented 1 month 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