Skip to content

Commit 36d5000

Browse files
Update README.md
1 parent 70c49bd commit 36d5000

File tree

1 file changed

+28
-2
lines changed

1 file changed

+28
-2
lines changed

README.md

Lines changed: 28 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,28 @@
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

0 commit comments

Comments
 (0)