Skip to content

Commit

Permalink
dalle command hotfix
Browse files Browse the repository at this point in the history
  • Loading branch information
fegloff committed Oct 7, 2024
1 parent 6a18b63 commit 94b0a1b
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
1 change: 0 additions & 1 deletion src/bot.ts
Original file line number Diff line number Diff line change
Expand Up @@ -527,7 +527,6 @@ bot.command('support', async (ctx) => {

bot.command('models', async (ctx) => {
const models = llmModelManager.generateTelegramOutput()
console.log(models)
writeCommandLog(ctx as OnMessageContext).catch(logErrorHandler)
return await ctx.reply(models, {
parse_mode: 'Markdown',
Expand Down
1 change: 1 addition & 0 deletions src/modules/llms/dalleBot.ts
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,7 @@ export class DalleBot extends LlmsBase {
ctx.transient.analytics.module = this.module
const session = this.getSession(ctx)
const isSupportedEvent = this.isSupportedEvent(ctx)

if (!isSupportedEvent && ctx.chat?.type !== 'private') {
this.logger.warn(`### unsupported command ${ctx.message?.text}`)
return
Expand Down
2 changes: 1 addition & 1 deletion src/modules/llms/utils/llmsData.ts
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ export const llmData: LLMData = {
fullName: 'GPT-4 Vision',
botName: 'OpenAIBot',
version: 'gpt-4-vision-preview',
commands: ['vision, v'],
commands: ['vision', 'v'],
prefix: ['v. '],
apiSpec: 'https://platform.openai.com/docs/guides/vision',
inputPrice: 0.03,
Expand Down

0 comments on commit 94b0a1b

Please sign in to comment.