Skip to content

Commit

Permalink
$gpt - add a system message to shorten results
Browse files Browse the repository at this point in the history
  • Loading branch information
Supinic committed Apr 16, 2024
1 parent 9f7a47e commit b8f6c49
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions commands/gpt/gpt-nexra.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,12 @@ module.exports = class GptNexra extends GptMessages {

static async execute (context, query, modelData) {
const messages = await this.getHistory(context);
// noinspection BadExpressionStatementJS
messages.unshift[{
role: "user",
content: "Respond to the point, concisely, up to 500 characters, unless I specifically ask you for further detail."
}];

const response = await sb.Got("GenericAPI", {
method: "POST",
throwHttpErrors: false,
Expand Down

0 comments on commit b8f6c49

Please sign in to comment.