Kav-K / GPTDiscord

A robust, all-in-one GPT interface for Discord. ChatGPT-style conversations, image generation, AI-moderation, custom indexes/knowledgebase, youtube summarizer, and more!
MIT License
1.8k stars 306 forks source link

System instruction setting guide #306

Closed Raecaug closed 1 year ago

Raecaug commented 1 year ago

I've noticed that /gpt instruction command doesn't have a guide on proper usage. @Hikari-Haru would you be able to give me the points of how it works, I'd be happy to add it to the docs?

cherryroots commented 1 year ago

The commands lets you set a system instruction for turbo and gpt4, or just prepending text for davinci and older The instruction will be added but not shown in the output not to be visually distracting Instructions are persistent

The command has 3 options, set and clear can only be used with the channel type if the user has the CHANNEL_INSTRUCTION_ROLES role

Currently the user set instruction takes priority, then the channel instruction. Added user instruction to prompt or Added channel instruction to prompt will be added before the output to indicate to the user that extra text has been added that's not shown

This applies to the /gpt ask command, @ the bot, and the right click context options

When used with davinci 3 or older models the spacing before the prompt and output is a bit ugly

Raecaug commented 1 year ago

Added in #309