diff --git a/src/bot.ts b/src/bot.ts index 904a3fd..4e3544d 100644 --- a/src/bot.ts +++ b/src/bot.ts @@ -402,7 +402,6 @@ const onMessage = async (ctx: OnMessageContext): Promise => { } for (const config of Object.values(PayableBots)) { const bot = config.bot - if (!bot.isSupportedEvent(ctx)) { continue } diff --git a/src/modules/llms/helpers.ts b/src/modules/llms/helpers.ts index c582a83..1c8b168 100644 --- a/src/modules/llms/helpers.ts +++ b/src/modules/llms/helpers.ts @@ -20,7 +20,7 @@ export enum SupportedCommands { } export const MAX_TRIES = 3 -const LLAMA_PREFIX_LIST = ['*'] +const LLAMA_PREFIX_LIST = ['* '] const BARD_PREFIX_LIST = ['b.', 'B.'] export const isMentioned = ( diff --git a/src/modules/open-ai/helpers.ts b/src/modules/open-ai/helpers.ts index 7bdbd5b..f91fd2b 100644 --- a/src/modules/open-ai/helpers.ts +++ b/src/modules/open-ai/helpers.ts @@ -27,9 +27,9 @@ export enum SupportedCommands { export const MAX_TRIES = 3 -export const DALLE_PREFIX_LIST = ['i. ', ',', 'image ', 'd.', 'img '] -export const CHAT_GPT_PREFIX_LIST = ['a.', '.'] -export const NEW_PREFIX_LIST = ['n.', '..'] +export const DALLE_PREFIX_LIST = ['i.', ', ', 'image ', 'd.', 'img '] +export const CHAT_GPT_PREFIX_LIST = ['a.', '. '] +export const NEW_PREFIX_LIST = ['n.', '.. '] export const isMentioned = ( ctx: OnMessageContext | OnCallBackQueryData