Skip to content

Commit

Permalink
Keep the bot from hallucinating plugins.
Browse files Browse the repository at this point in the history
Fixes #49
  • Loading branch information
yGuy committed Jul 31, 2023
1 parent 635c0af commit 8ef5c69
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/botservice.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,9 @@ const plugins: PluginBase<any>[] = [
]

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

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

0 comments on commit 8ef5c69

Please sign in to comment.