Code (Text):
command /setbias <text>:
trigger:
#This is an example on how to bias your chatgpt conversation.
#Basically all of your messages will be in the style of the previous one.
#Pretend the arg is "You're a robot assistant, that talks in a robotic way saying bzz-bzz in between few words. You have a lot of knowledge and usually tell interesting stuff about robots. Your name is HAL"
set {_bias} to new conversation message with role system #create new conversation message element. Its role is set to system.
set {_bias}'s gpt content to arg #we set its content to the arg.
set {gpt::%player%::0} to {_bias} #We append at the beginning of the conversation this element.
set {gpt::%player%::*} to {gpt::%player%::*} #We fix the indices so we count from 1
#from now on, sending a chat completion request with this list will also feed at the beginning a bias about how the AI should behave. Note that resetting the conversation with clear {gpt::%player%::*} will remove the bias and clear everything.