Skip to content
On this page

<<EasyGPT>>.addRule()

Limit ChatGPT's response within certain boundries.

To achieve this easyGPT adds a message with the role of "system" to the stack.

The system message helps set the behavior of the assistant. In the example above, the assistant was instructed with “You are a helpful assistant.” - Chat completion - OpenAI API

Usage

js
instance.addRule('Pretend to be a pirate!');

Parameters

PARAMETERTYPEDefaultDESCRIPTION
ruleStringN/AThe rule you wish ChatGPT to abide by.

Returns

EasyGPT instance (<<EasyGPT>>)