Skip to content

Commit 1009f0d

Browse files
committed
release 1beta.0.0.0
1 parent da5c728 commit 1009f0d

File tree

6 files changed

+59
-7
lines changed

6 files changed

+59
-7
lines changed

gemini-api/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<parent>
77
<groupId>swiss.ameri</groupId>
88
<artifactId>gemini</artifactId>
9-
<version>1.0-SNAPSHOT</version>
9+
<version>1beta.0.0.0</version>
1010
</parent>
1111

1212
<artifactId>gemini-api</artifactId>

gemini-api/src/main/java/swiss/ameri/gemini/api/SafetySetting.java

Lines changed: 54 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,26 +24,78 @@ public static SafetySetting of(
2424

2525
/**
2626
* According to <a href="https://ai.google.dev/api/rest/v1beta/HarmCategory">HarmCategory</a>.
27-
* Currently, only the first 4 seem to be recognized.
27+
* Currently, only the first 4 seem to be recognized as input.
2828
*/
2929
public enum HarmCategory {
30+
/**
31+
* Harasment content.
32+
*/
33+
HARM_CATEGORY_HARASSMENT,
34+
/**
35+
* Hate speech and content.
36+
*/
3037
HARM_CATEGORY_HATE_SPEECH,
38+
/**
39+
* Sexually explicit content.
40+
*/
3141
HARM_CATEGORY_SEXUALLY_EXPLICIT,
42+
/**
43+
* Dangerous content.
44+
*/
3245
HARM_CATEGORY_DANGEROUS_CONTENT,
33-
HARM_CATEGORY_HARASSMENT,
46+
/**
47+
* Category is unspecified.
48+
*/
49+
HARM_CATEGORY_UNSPECIFIED,
50+
/**
51+
* Negative or harmful comments targeting identity and/or protected attribute.
52+
*/
53+
HARM_CATEGORY_DEROGATORY,
54+
/**
55+
* Content that is rude, disrespectful, or profane.
56+
*/
57+
HARM_CATEGORY_TOXICITY,
58+
/**
59+
* Describes scenarios depicting violence against an individual or group, or general descriptions of gore.
60+
*/
61+
HARM_CATEGORY_VIOLENCE,
62+
/**
63+
* Contains references to sexual acts or other lewd content.
64+
*/
3465
HARM_CATEGORY_SEXUAL,
66+
/**
67+
* Promotes unchecked medical advice.
68+
*/
3569
HARM_CATEGORY_MEDICAL,
70+
/**
71+
* Dangerous content that promotes, facilitates, or encourages harmful acts.
72+
*/
3673
HARM_CATEGORY_DANGEROUS,
3774
}
3875

3976
/**
4077
* According to <a href="https://ai.google.dev/api/rest/v1beta/SafetySetting#harmblockthreshold">SafetySetting</a>
4178
*/
4279
public enum HarmBlockThreshold {
80+
/**
81+
* Threshold is unspecified.
82+
*/
4383
HARM_BLOCK_THRESHOLD_UNSPECIFIED,
84+
/**
85+
* Content with NEGLIGIBLE will be allowed.
86+
*/
4487
BLOCK_LOW_AND_ABOVE,
88+
/**
89+
* Content with NEGLIGIBLE and LOW will be allowed.
90+
*/
4591
BLOCK_MEDIUM_AND_ABOVE,
92+
/**
93+
* Content with NEGLIGIBLE, LOW, and MEDIUM will be allowed.
94+
*/
4695
BLOCK_ONLY_HIGH,
96+
/**
97+
* All content will be allowed.
98+
*/
4799
BLOCK_NONE
48100
}
49101

gemini-gson/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<parent>
88
<groupId>swiss.ameri</groupId>
99
<artifactId>gemini</artifactId>
10-
<version>1.0-SNAPSHOT</version>
10+
<version>1beta.0.0.0</version>
1111
</parent>
1212

1313
<artifactId>gemini-gson</artifactId>

gemini-tester/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<parent>
88
<groupId>swiss.ameri</groupId>
99
<artifactId>gemini</artifactId>
10-
<version>1.0-SNAPSHOT</version>
10+
<version>1beta.0.0.0</version>
1111
</parent>
1212
<artifactId>gemini-tester</artifactId>
1313

gemini-tester/src/main/java/swiss/ameri/gemini/tester/GeminiTester.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ private static void textAndImage(GenAi genAi) throws IOException {
135135
.join();
136136
}
137137

138-
public static String loadSconesImage() throws IOException {
138+
private static String loadSconesImage() throws IOException {
139139
try (InputStream is = GeminiTester.class.getClassLoader().getResourceAsStream("scones.png")) {
140140
if (is == null) {
141141
throw new IllegalStateException("Image not found! ");

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
<groupId>swiss.ameri</groupId>
88
<artifactId>gemini</artifactId>
9-
<version>1.0-SNAPSHOT</version>
9+
<version>1beta.0.0.0</version>
1010
<packaging>pom</packaging>
1111

1212
<licenses>

0 commit comments

Comments
 (0)