Skip to content

Commit

Permalink
fix prefix command
Browse files Browse the repository at this point in the history
  • Loading branch information
fegloff committed Jan 29, 2024
1 parent 50d9f79 commit b2116de
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
1 change: 0 additions & 1 deletion src/bot.ts
Original file line number Diff line number Diff line change
Expand Up @@ -402,7 +402,6 @@ const onMessage = async (ctx: OnMessageContext): Promise<void> => {
}
for (const config of Object.values(PayableBots)) {
const bot = config.bot

if (!bot.isSupportedEvent(ctx)) {
continue
}
Expand Down
2 changes: 1 addition & 1 deletion src/modules/llms/helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 = (
Expand Down
6 changes: 3 additions & 3 deletions src/modules/open-ai/helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b2116de

Please sign in to comment.