File tree Expand file tree Collapse file tree 1 file changed +28
-2
lines changed
Expand file tree Collapse file tree 1 file changed +28
-2
lines changed Original file line number Diff line number Diff line change 1- # gemini
2- Java library for gemini api
1+ # Introduction
2+ Java library for Gemini API.
3+ See the documentation here: https://ai.google.dev/gemini-api
4+
5+ # Getting started
6+ - Generate an API key: https://aistudio.google.com/app/apikey
7+
8+ # Usage
9+ ## Dependency
10+ Add the ` gemini-api ` dependency. Maven example:
11+
12+ <dependency>
13+ <groupId>swiss.ameri</groupId>
14+ <artifactId>gemini-api</artifactId>
15+ <version>${gemini.version}</version>
16+ </dependency>
17+
18+ ## JsonParser
19+ In order for this library to stay free of dependencies, the user must provide an implementation of the ` swiss.ameri.gemini.spi.JsonParser ` class.
20+ Alternatively, an example gson implementation can be used with the following dependency (which includes a gson dependency)
21+
22+ <dependency>
23+ <groupId>swiss.ameri</groupId>
24+ <artifactId>gemini-gson</artifactId>
25+ <version>${gemini.version}</version>
26+ </dependency>
27+
28+ # Versioning
You can’t perform that action at this time.
0 commit comments