Skip to content

Commit

Permalink
disable bard commands
Browse files Browse the repository at this point in the history
  • Loading branch information
fegloff committed Jul 16, 2024
1 parent d78126f commit 61fbcbd
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/modules/llms/vertexBot.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ export class VertexBot extends LlmsBase {
ctx: OnMessageContext | OnCallBackQueryData
): boolean {
const hasCommand = ctx.hasCommand([
SupportedCommands.bard,
SupportedCommands.bardF,
// SupportedCommands.bard,
// SupportedCommands.bardF,
SupportedCommands.gemini,
SupportedCommands.gShort,
SupportedCommands.g15short,
Expand Down Expand Up @@ -81,11 +81,11 @@ export class VertexBot extends LlmsBase {
this.logger.warn(`### unsupported command ${ctx.message?.text}`)
return
}
if (ctx.hasCommand([SupportedCommands.bard, SupportedCommands.bardF]) || hasBardPrefix(ctx.message?.text ?? '')) {
this.updateSessionModel(ctx, LlmsModelsEnum.BISON)
await this.onChat(ctx, LlmsModelsEnum.BISON, false, false)
return
}
// if (ctx.hasCommand([SupportedCommands.bard, SupportedCommands.bardF]) || hasBardPrefix(ctx.message?.text ?? '')) {
// this.updateSessionModel(ctx, LlmsModelsEnum.BISON)
// await this.onChat(ctx, LlmsModelsEnum.BISON, false, false)
// return
// }
if (ctx.hasCommand([SupportedCommands.gemini, SupportedCommands.gShort]) || (hasGeminiPrefix(ctx.message?.text ?? '') !== '')) {
this.updateSessionModel(ctx, LlmsModelsEnum.GEMINI)
await this.onChat(ctx, LlmsModelsEnum.GEMINI, true, false)
Expand Down

0 comments on commit 61fbcbd

Please sign in to comment.