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.82k stars 770 forks source link

--chat and --role options does'nt seem to work together with any other prompt than default #487

Open akhil3417 opened 9 months ago

akhil3417 commented 9 months ago

maim-region-20240220-114838

akhil3417 commented 9 months ago

figured that only use the --role flag when creating an new chat , have to continue later with chat name only. but would be great if was mentioned somewhere , or this was the default behaviour as well , so that one can switch roles on same chat.

DuyHuynhLe commented 9 months ago

I'm on SGPT 1.3.1, and --role and --chat work fine together, even for subsequent messages. However, if you use a custom role, you must ensure the role description is in a specific format.

It should be "\nDescription" or "You are \nDescription."

This requirement is due to how the current role name is retrieved.