We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cce2022 commit 5a67a83Copy full SHA for 5a67a83
README.md
@@ -35,8 +35,10 @@ See gemini-tester for some examples.
35
apiKey,
36
parser
37
);
38
+
39
// list available models
- genAi.listModels().forEach(System.out::println)
40
+ genAi.listModels().forEach(System.out::println);
41
42
// create a prompt
43
var model = GenerativeModel.builder()
44
.modelName(ModelVariant.GEMINI_1_0_PRO)
@@ -45,6 +47,7 @@ See gemini-tester for some examples.
45
47
"Write a 300 word story about a magic backpack."
46
48
))
49
.build();
50
51
// execute the prompt, wait for the full response
52
genAi.generateContent(model)
53
.thenAccept(System.out::println)
0 commit comments