mirror of
https://gitlab.com/bignutty/labscore.git
synced 2025-06-10 07:03:08 -04:00
upgrade test system
This commit is contained in:
parent
79afe37d42
commit
246a64bca4
9 changed files with 76 additions and 83 deletions
|
@ -9,7 +9,7 @@ const { Permissions } = require("detritus-client/lib/constants");
|
|||
const superagent = require('superagent');
|
||||
const { STATIC_ICONS } = require("../../../labscore/utils/statics");
|
||||
const { stringwrap, iconPill, smallIconPill } = require("../../../labscore/utils/markdown");
|
||||
const { canUseLimitedTestCommands } = require("../../../labscore/utils/testing");
|
||||
const { hasFeature } = require("../../../labscore/utils/testing");
|
||||
module.exports = {
|
||||
name: 'gemini-vision',
|
||||
label: 'text',
|
||||
|
@ -23,8 +23,7 @@ module.exports = {
|
|||
},
|
||||
permissionsClient: [Permissions.EMBED_LINKS, Permissions.SEND_MESSAGES, Permissions.USE_EXTERNAL_EMOJIS, Permissions.ATTACH_FILES, Permissions.READ_MESSAGE_HISTORY],
|
||||
run: async (context, args) => {
|
||||
context.triggerTyping();
|
||||
if(!canUseLimitedTestCommands(context)) return;
|
||||
if(!await hasFeature(context, "ai/gemini/vision")) return;
|
||||
context.triggerTyping();
|
||||
|
||||
// for the sake of privacy, make the context window one message
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue