diff --git a/src/modules/llms/helpers.ts b/src/modules/llms/helpers.ts index 1c8b168f..0ea4e4a4 100644 --- a/src/modules/llms/helpers.ts +++ b/src/modules/llms/helpers.ts @@ -21,7 +21,7 @@ export enum SupportedCommands { export const MAX_TRIES = 3 const LLAMA_PREFIX_LIST = ['* '] -const BARD_PREFIX_LIST = ['b.', 'B.'] +const BARD_PREFIX_LIST = ['b. ', 'B. '] export const isMentioned = ( ctx: OnMessageContext | OnCallBackQueryData diff --git a/src/modules/open-ai/helpers.ts b/src/modules/open-ai/helpers.ts index 30ba7de1..b5338742 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.', ', ', 'd.'] -export const CHAT_GPT_PREFIX_LIST = ['a.', '. '] -export const NEW_PREFIX_LIST = ['n.', '.. '] +export const DALLE_PREFIX_LIST = ['i. ', ', ', 'd. '] +export const CHAT_GPT_PREFIX_LIST = ['a. ', '. '] +export const NEW_PREFIX_LIST = ['n. ', '.. '] export const isMentioned = ( ctx: OnMessageContext | OnCallBackQueryData diff --git a/src/modules/payment/index.ts b/src/modules/payment/index.ts index 226a5239..5d663076 100644 --- a/src/modules/payment/index.ts +++ b/src/modules/payment/index.ts @@ -555,9 +555,9 @@ export class BotPayments { return true } else { if (ctx.chat?.id) { - await ctx.api.editMessageText(ctx.chat?.id, msgId, `Not enough balance. To recharge send ONE to \`${userAccount.address}\``, { parse_mode: 'Markdown' }) + await ctx.api.editMessageText(ctx.chat?.id, msgId, `Insufficient ONE balance to cover gas fees. Please send 1 ONE to \`${userAccount.address}\` to cover gas fees`, { parse_mode: 'Markdown' }) } else { - await sendMessage(ctx, `Not enough balance. To recharge send ONE to \`${userAccount.address}\``, { parseMode: 'Markdown' }) + await sendMessage(ctx, `Insufficient ONE balance to cover gas fees. Please send 1 ONE to \`${userAccount.address}\` to cover gas fees`, { parseMode: 'Markdown' }) } } return false diff --git a/src/modules/sd-images/helpers.ts b/src/modules/sd-images/helpers.ts index 9099e648..2b22db52 100644 --- a/src/modules/sd-images/helpers.ts +++ b/src/modules/sd-images/helpers.ts @@ -38,7 +38,7 @@ const removeSpaceFromBegin = (text: string): string => { return text.slice(idx) } -const SPECIAL_IMG_CMD_SYMBOLS = ['l.', '? ', '! ', ': ', '; ', 'r.', 'R.', '( ', '$ ', '& ', '< '] +const SPECIAL_IMG_CMD_SYMBOLS = ['l. ', '? ', '! ', ': ', '; ', 'r. ', 'R. ', '( ', '$ ', '& ', '< '] export const getPrefix = (prompt: string, prefixList: string[]): string => { for (let i = 0; i < prefixList.length; i++) { @@ -182,12 +182,12 @@ export const parseCtx = (ctx: Context): IOperation | false => { command = COMMAND.TEXT_TO_IMAGE } - if (messageText.startsWith('l.') ?? messageText.startsWith('L.')) { + if (messageText.startsWith('l. ') ?? messageText.startsWith('L. ')) { model = getModelByParam('xl') lora = getLoraByParam('logo', model?.baseModel ?? 'SDXL 1.0') } - if (messageText.startsWith('g.') || messageText.startsWith('G.')) { + if (messageText.startsWith('g. ') || messageText.startsWith('G. ')) { command = COMMAND.TEXT_TO_IMAGE format = MEDIA_FORMAT.GIF model = getModelByParam('22')