Skip to content

Commit 015525e

Browse files
committed
update suffix
1 parent 0f0c0fc commit 015525e

File tree

4 files changed

+9
-9
lines changed

4 files changed

+9
-9
lines changed

src/modules/llms/helpers.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ export enum SupportedCommands {
2121

2222
export const MAX_TRIES = 3
2323
const LLAMA_PREFIX_LIST = ['* ']
24-
const BARD_PREFIX_LIST = ['b.', 'B.']
24+
const BARD_PREFIX_LIST = ['b. ', 'B. ']
2525

2626
export const isMentioned = (
2727
ctx: OnMessageContext | OnCallBackQueryData

src/modules/open-ai/helpers.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@ export enum SupportedCommands {
2727

2828
export const MAX_TRIES = 3
2929

30-
export const DALLE_PREFIX_LIST = ['i.', ', ', 'd.']
31-
export const CHAT_GPT_PREFIX_LIST = ['a.', '. ']
32-
export const NEW_PREFIX_LIST = ['n.', '.. ']
30+
export const DALLE_PREFIX_LIST = ['i. ', ', ', 'd. ']
31+
export const CHAT_GPT_PREFIX_LIST = ['a. ', '. ']
32+
export const NEW_PREFIX_LIST = ['n. ', '.. ']
3333

3434
export const isMentioned = (
3535
ctx: OnMessageContext | OnCallBackQueryData

src/modules/payment/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -555,9 +555,9 @@ export class BotPayments {
555555
return true
556556
} else {
557557
if (ctx.chat?.id) {
558-
await ctx.api.editMessageText(ctx.chat?.id, msgId, `Not enough balance. To recharge send ONE to \`${userAccount.address}\``, { parse_mode: 'Markdown' })
558+
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' })
559559
} else {
560-
await sendMessage(ctx, `Not enough balance. To recharge send ONE to \`${userAccount.address}\``, { parseMode: 'Markdown' })
560+
await sendMessage(ctx, `Insufficient ONE balance to cover gas fees. Please send 1 ONE to \`${userAccount.address}\` to cover gas fees`, { parseMode: 'Markdown' })
561561
}
562562
}
563563
return false

src/modules/sd-images/helpers.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ const removeSpaceFromBegin = (text: string): string => {
3838
return text.slice(idx)
3939
}
4040

41-
const SPECIAL_IMG_CMD_SYMBOLS = ['l.', '? ', '! ', ': ', '; ', 'r.', 'R.', '( ', '$ ', '& ', '< ']
41+
const SPECIAL_IMG_CMD_SYMBOLS = ['l. ', '? ', '! ', ': ', '; ', 'r. ', 'R. ', '( ', '$ ', '& ', '< ']
4242

4343
export const getPrefix = (prompt: string, prefixList: string[]): string => {
4444
for (let i = 0; i < prefixList.length; i++) {
@@ -182,12 +182,12 @@ export const parseCtx = (ctx: Context): IOperation | false => {
182182
command = COMMAND.TEXT_TO_IMAGE
183183
}
184184

185-
if (messageText.startsWith('l.') ?? messageText.startsWith('L.')) {
185+
if (messageText.startsWith('l. ') ?? messageText.startsWith('L. ')) {
186186
model = getModelByParam('xl')
187187
lora = getLoraByParam('logo', model?.baseModel ?? 'SDXL 1.0')
188188
}
189189

190-
if (messageText.startsWith('g.') || messageText.startsWith('G.')) {
190+
if (messageText.startsWith('g. ') || messageText.startsWith('G. ')) {
191191
command = COMMAND.TEXT_TO_IMAGE
192192
format = MEDIA_FORMAT.GIF
193193
model = getModelByParam('22')

0 commit comments

Comments
 (0)