Skip to content

Commit

Permalink
model switch fix
Browse files Browse the repository at this point in the history
  • Loading branch information
nbonamy committed May 9, 2024
1 parent 1876fb8 commit 7f6ed2e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/services/engine.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ export default class LlmEngine {
}

// check if amy of the messages in the thread have an attachment
return thread.some((msg) => msg.attachment)
return thread.some((msg) => msg.attachment && imageFormats.includes(msg.attachment.format))

}

Expand Down

0 comments on commit 7f6ed2e

Please sign in to comment.