From ef3ede5c90a1b442b3df5f805a380ab108c27464 Mon Sep 17 00:00:00 2001 From: M66B Date: Tue, 25 Jun 2024 09:26:27 +0200 Subject: [PATCH] No need to summarize the subject --- app/src/main/java/eu/faircode/email/AI.java | 6 ------ 1 file changed, 6 deletions(-) diff --git a/app/src/main/java/eu/faircode/email/AI.java b/app/src/main/java/eu/faircode/email/AI.java index 1606edf5dd..17746b25df 100644 --- a/app/src/main/java/eu/faircode/email/AI.java +++ b/app/src/main/java/eu/faircode/email/AI.java @@ -212,10 +212,6 @@ public class AI { new OpenAI.Content[]{new OpenAI.Content(OpenAI.CONTENT_TEXT, templatePrompt == null ? defaultPrompt : templatePrompt)})); - if (!TextUtils.isEmpty(message.subject)) - input.add(new OpenAI.Message(OpenAI.USER, - new OpenAI.Content[]{new OpenAI.Content(OpenAI.CONTENT_TEXT, message.subject)})); - if (multimodal) { SpannableStringBuilder ssb = HtmlHelper.fromDocument(context, d, null, null); input.add(new OpenAI.Message(OpenAI.USER, @@ -243,8 +239,6 @@ public class AI { List texts = new ArrayList<>(); texts.add(templatePrompt == null ? defaultPrompt : templatePrompt); - if (!TextUtils.isEmpty(message.subject)) - texts.add(message.subject); if (!TextUtils.isEmpty(body)) texts.add(body); Gemini.Message content = new Gemini.Message(Gemini.USER, texts.toArray(new String[0]));