4 releases

0.0.5 Apr 3, 2024
0.0.4 Mar 4, 2024
0.0.2 Mar 1, 2024
0.0.1 Mar 1, 2024

#21 in #gemini

Download history 225/week @ 2024-02-25 191/week @ 2024-03-03 39/week @ 2024-03-10 3/week @ 2024-03-17 181/week @ 2024-03-31 13/week @ 2024-04-07

194 downloads per month
Used in await-openai

MIT license

56KB
995 lines

async-gemini

There are two versions of Gemini API.

The endpoint is: generativelanguage.googleapis.com/v1beta

The endpoint is: {location}-aiplatform.googleapis.com/v1

This library is primarily designed to support the first version of the Gemini API. While the Gemini API on Vertex AI has not been thoroughly tested.

Gemini API support both camelCase and snake_case as request JSON key, but this lib only support camelCase.

Gemini API support trailing comma in request JSON, but this lib do not support it.

Dependencies

~0.7–1.4MB
~32K SLoC