No need to summarize the subject

pull/215/head
M66B 6 months ago
parent cd83c1b66e
commit ef3ede5c90

@ -212,10 +212,6 @@ public class AI {
new OpenAI.Content[]{new OpenAI.Content(OpenAI.CONTENT_TEXT, new OpenAI.Content[]{new OpenAI.Content(OpenAI.CONTENT_TEXT,
templatePrompt == null ? defaultPrompt : templatePrompt)})); 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) { if (multimodal) {
SpannableStringBuilder ssb = HtmlHelper.fromDocument(context, d, null, null); SpannableStringBuilder ssb = HtmlHelper.fromDocument(context, d, null, null);
input.add(new OpenAI.Message(OpenAI.USER, input.add(new OpenAI.Message(OpenAI.USER,
@ -243,8 +239,6 @@ public class AI {
List<String> texts = new ArrayList<>(); List<String> texts = new ArrayList<>();
texts.add(templatePrompt == null ? defaultPrompt : templatePrompt); texts.add(templatePrompt == null ? defaultPrompt : templatePrompt);
if (!TextUtils.isEmpty(message.subject))
texts.add(message.subject);
if (!TextUtils.isEmpty(body)) if (!TextUtils.isEmpty(body))
texts.add(body); texts.add(body);
Gemini.Message content = new Gemini.Message(Gemini.USER, texts.toArray(new String[0])); Gemini.Message content = new Gemini.Message(Gemini.USER, texts.toArray(new String[0]));

Loading…
Cancel
Save