Skip to content

Commit

Permalink
Fix AI Privacy Policy links (JabRef#12295)
Browse files Browse the repository at this point in the history
  • Loading branch information
InAnYan authored Dec 16, 2024
1 parent 38576bb commit 54e285f
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
<Text text="%This setting may be changed in preferences at any time."/>
<GridPane fx:id="aiPolicies" hgap="4" vgap="4" />
<Text fx:id="embeddingModelText" text="%Additionally, we use Deep Java Library (DJL) embedding models for both chatting and summarization. The embedding model will be downloaded in background (size %0) from Deep Java Library servers anonymously." />
<Hyperlink wrapText="true" onAction="#onDjlPrivacyPolicyClick" styleClass="embeddedHyperlink" text="%You find information about the privacy policy here." />
<Hyperlink wrapText="true" onAction="#onDjlPrivacyPolicyClick" styleClass="embeddedHyperlink" text="%You can find information about DJL privacy policy here." />
<Button onAction="#onIAgreeButtonClick" text="%I agree"/>
</VBox>
</fx:root>
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ private void addPrivacyHyperlink(GridPane gridPane, AiProvider aiProvider) {
Label aiName = new Label(aiProvider.getLabel());
gridPane.add(aiName, 0, row);

Hyperlink hyperlink = new Hyperlink(aiProvider.getApiUrl());
Hyperlink hyperlink = new Hyperlink(aiProvider.getPrivacyPolicyUrl());
hyperlink.setWrapText(true);
// hyperlink.setFont(aiName.getFont());
hyperlink.setOnAction(event -> openBrowser(aiProvider.getApiUrl()));
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/org/jabref/model/ai/AiProvider.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@

public enum AiProvider implements Serializable {
OPEN_AI("OpenAI", "https://api.openai.com/v1", "https://openai.com/policies/privacy-policy/"),
MISTRAL_AI("Mistral AI", "https://mistral.ai/terms/#privacy-policy", "https://mistral.ai/terms/#privacy-policy"),
GEMINI("Gemini", "https://huggingface.co/privacy", "https://ai.google.dev/gemini-api/terms"),
MISTRAL_AI("Mistral AI", "https://api.mistral.ai/v1", "https://mistral.ai/terms/#privacy-policy"),
GEMINI("Gemini", "https://generativelanguage.googleapis.com/v1beta/", "https://ai.google.dev/gemini-api/terms"),
HUGGING_FACE("Hugging Face", "https://huggingface.co/api", "https://huggingface.co/privacy"),
GPT4ALL("GPT4All", "http://localhost:4891/v1", "https://www.nomic.ai/gpt4all/legal/privacy-policy");

Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/l10n/JabRef_en.properties
Original file line number Diff line number Diff line change
Expand Up @@ -2621,7 +2621,7 @@ Estimated\ time\ left\:\ 5\ seconds.=Estimated time left: 5 seconds.
Estimated\ time\ left\:\ approx.\ 1\ minute.=Estimated time left: approx. 1 minute.
Estimated\ time\ left\:\ approx.\ 2\ minutes.=Estimated time left: approx. 2 minutes.
Estimated\ time\ left\:\ more\ than\ 2\ minutes.=Estimated time left: more than 2 minutes.
You\ find\ information\ about\ the\ privacy\ policy\ here.=You find information about the privacy policy here.
You\ can\ find\ information\ about\ DJL\ privacy\ policy\ here.=You can find information about DJL privacy policy here.
The\ size\ of\ the\ embedding\ model\ could\ be\ smaller\ than\ written\ in\ the\ list.=The size of the embedding model could be smaller than written in the list.
Embedding\ model\ has\ to\ be\ provided=Embedding model has to be provided
After\ the\ file\ will\ be\ ingested,\ you\ will\ be\ able\ to\ chat\ with\ it.=After the file will be ingested, you will be able to chat with it.
Expand Down

0 comments on commit 54e285f

Please sign in to comment.