Skip to content

Commit

Permalink
fix(llm): LLM processing did not work
Browse files Browse the repository at this point in the history
  • Loading branch information
andris9 committed Feb 18, 2024
1 parent cbfb242 commit 28973d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/mailbox.js
Original file line number Diff line number Diff line change
Expand Up @@ -1088,7 +1088,7 @@ class Mailbox {
if (messageInfo.messageSpecialUse === '\\Inbox' && (!this.connection.notifyFrom || messageData.internalDate >= this.connection.notifyFrom)) {
let messageData = Object.assign({ account: this.connection.account }, messageInfo);

let canUseLLM = (await llmPreProcess.run(messageData)) && messageInfo.text;
let canUseLLM = await llmPreProcess.run(messageData);

if (canUseLLM && (messageInfo.text.plain || messageInfo.text.html)) {
if (canUseLLM.generateEmailSummary) {
Expand Down

0 comments on commit 28973d4

Please sign in to comment.