From 30f00fdbfa5de82aca1ac8564330fbea24a176b5 Mon Sep 17 00:00:00 2001 From: derpystuff <3515180-derpystuff@users.noreply.gitlab.com> Date: Wed, 13 Dec 2023 22:23:09 +0100 Subject: [PATCH] adjust command further --- commands/message/genai/gemini-vision.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/commands/message/genai/gemini-vision.js b/commands/message/genai/gemini-vision.js index 68713b0..78feeec 100644 --- a/commands/message/genai/gemini-vision.js +++ b/commands/message/genai/gemini-vision.js @@ -15,8 +15,8 @@ module.exports = { label: 'text', aliases: ['gv'], metadata: { - description: 'Gemini Vision.', - description_short: 'Pride overlay', + description: 'Run Gemini Vision on an Image with a custom prompt.', + description_short: 'Run Gemini Vision ', examples: ['gv Which show is this image from?'], category: 'limited', usage: 'gemini-vision ' @@ -27,7 +27,8 @@ module.exports = { if(!canUseLimitedTestCommands(context)) return; context.triggerTyping(); - let image = await getRecentImage(context, 2) + // for the sake of privacy, make the context window one message + let image = await getRecentImage(context, 1) if (!image) return editOrReply(context, createEmbed("warning", context, "No images found. Reply if you want a specific image.")) if(!args.text) return editOrReply(context, createEmbed("warning", context, `Missing Parameter (text).`))