Skip to content

Commit 8ef5c69

Browse files
committed
Keep the bot from hallucinating plugins.
Fixes yGuy#49
1 parent 635c0af commit 8ef5c69

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

src/botservice.ts

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,9 @@ const plugins: PluginBase<any>[] = [
2929
]
3030

3131
/* The main system instruction for GPT */
32-
const botInstructions = "Your name is " + name + " and you are a helpful assistant. Whenever the user asks you for help you will " +
33-
"provide him with succinct answers. When using functions check for each function argument if the user provided enough " +
34-
"information to satisfy the requirements of the argument. If not, ask the user for more information and do not call the " +
35-
"function. You know the users name as it is provided within the " +
36-
"meta data of his messages."
32+
const botInstructions = "Your name is " + name + " and you are a helpful assistant. Whenever users asks you for help you will " +
33+
"provide them with succinct answers formatted using Markdown. You know the user's name as it is provided within the " +
34+
"meta data of the messages."
3735

3836
async function onClientMessage(msg: WebSocketMessage<JSONMessageData>, meId: string, log: Log) {
3937
if (msg.event !== 'posted' || !meId) {

0 commit comments

Comments
 (0)