Skip to content

Commit

Permalink
add /o command
Browse files Browse the repository at this point in the history
  • Loading branch information
fegloff committed Apr 2, 2024
1 parent 1f26b13 commit 33e6fa8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/modules/llms/helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,9 @@ export enum SupportedCommands {
bardF = 'bard',
claudeOpus = 'claude',
opus = 'opus',
opusShort = 'o',
claudeSonnet = 'claudes',
opusShort = 'c',
claudeShort = 'c',
sonnet = 'sonnet',
sonnetShort = 's',
claudeHaiku = 'haiku',
Expand Down
2 changes: 1 addition & 1 deletion src/modules/llms/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ export class LlmsBot implements PayableBot {
await this.onChat(ctx, LlmsModelsEnum.GEMINI)
return
}
if (ctx.hasCommand([SupportedCommands.claudeOpus, SupportedCommands.opus, SupportedCommands.opusShort]) || (hasClaudeOpusPrefix(ctx.message?.text ?? '') !== '')) {
if (ctx.hasCommand([SupportedCommands.claudeOpus, SupportedCommands.opus, SupportedCommands.opusShort, SupportedCommands.claudeShort]) || (hasClaudeOpusPrefix(ctx.message?.text ?? '') !== '')) {
await this.onChat(ctx, LlmsModelsEnum.CLAUDE_OPUS)
return
}
Expand Down

0 comments on commit 33e6fa8

Please sign in to comment.