From c9be4cd21f75a89bb9b6353e8186c01bec53bedc Mon Sep 17 00:00:00 2001 From: InAnYan Date: Mon, 16 Dec 2024 16:01:16 +0200 Subject: [PATCH 1/3] Add notice on usage of local models --- src/main/java/module-info.java | 1 + .../ai/components/aichat/AiChatComponent.fxml | 8 +++--- .../ai/components/aichat/AiChatComponent.java | 5 ++++ .../privacynotice/PrivacyNoticeComponent.java | 2 +- .../gui/preferences/ai/AiTabViewModel.java | 14 +++++----- .../jabref/logic/ai/AiDefaultPreferences.java | 14 +++++----- .../org/jabref/logic/ai/AiPreferences.java | 27 ++++++++++++++++--- .../model/JabRefChatLanguageModel.java | 2 +- .../preferences/JabRefCliPreferences.java | 4 +-- .../java/org/jabref/model/ai/AiProvider.java | 5 ++-- src/main/resources/l10n/JabRef_en.properties | 4 ++- .../summarization/SummariesStorageTest.java | 4 +-- 12 files changed, 61 insertions(+), 29 deletions(-) diff --git a/src/main/java/module-info.java b/src/main/java/module-info.java index f0151b8988e..ef78598a514 100644 --- a/src/main/java/module-info.java +++ b/src/main/java/module-info.java @@ -193,5 +193,6 @@ requires mslinks; requires org.antlr.antlr4.runtime; requires org.libreoffice.uno; + requires org.checkerframework.checker.qual; // endregion } diff --git a/src/main/java/org/jabref/gui/ai/components/aichat/AiChatComponent.fxml b/src/main/java/org/jabref/gui/ai/components/aichat/AiChatComponent.fxml index bd222d360f9..ae61cfd350f 100644 --- a/src/main/java/org/jabref/gui/ai/components/aichat/AiChatComponent.fxml +++ b/src/main/java/org/jabref/gui/ai/components/aichat/AiChatComponent.fxml @@ -35,9 +35,11 @@ -