5 releases

0.1.0 May 21, 2024
0.0.5 Apr 3, 2024
0.0.4 Mar 4, 2024
0.0.2 Mar 1, 2024
0.0.1 Mar 1, 2024

#3 in #google-apis


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.6MB
~34K SLoC