Skip to content
On this page

<<EasyGPT>>.addResponse()

Manually add a response from ChatGPT.

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

The assistant messages help store prior responses. They can also be written by a developer to help give examples of desired behavior. - Chat completion - OpenAI API

Usage

js
instance.addResponse('My name is Bender Bending Rodríguez.');

Parameters

PARAMETERTYPEDefaultDESCRIPTION
contentStringN/AThe response you wish to plant.

Returns

EasyGPT instance (<<EasyGPT>>)