Skip to content

Releases: google-gemini/generative-ai-android

v0.6.0

13 May 14:28
0dc70bf
Compare
Choose a tag to compare

0.6.0

  • Add GenerateContentResponse#functionCalls and mark GenerateContentResponse#functionCall deprecated
  • Add support for responseMimeType
  • Fix proguard configuration for release builds (#139)

v0.5.0

03 May 16:32
1d12b81
Compare
Choose a tag to compare

0.5.0

  • Remove usages of v1beta opt-in flag as the default api version is "v1beta"
  • Expose UsageMetadata in GenerateContentResponse
  • Fix parsing of UsageMetadata to address #134

v0.4.0

19 Apr 18:34
3f253ab
Compare
Choose a tag to compare

0.4.0

  • license field is now optional (nullable) in Citations
  • The default api version is now v1beta
  • Files uploaded using the File service can now be referenced in the prompt using the new FileDataPart
  • Implement error catching for unsupported Part types.

v0.3.0

10 Apr 15:06
56cf778
Compare
Choose a tag to compare

0.3.0

  • Add function calling
  • Make totalTokens in CountTokensResponse nullable
  • Keep argument positions
  • Implement error catching for unsupported Part types.

v0.2.2

14 Mar 19:06
87469b6
Compare
Choose a tag to compare

0.2.2

  • Fix issue causing Chat messages to fail due to missing role.

v0.2.1

28 Feb 21:32
7abb340
Compare
Choose a tag to compare

0.2.1

  • Make "user" the default role in all requests
  • Add InvalidAPIKeyException
  • Add UnsupportedUserLocationException

v0.2.0

13 Feb 20:49
ee3e3a0
Compare
Choose a tag to compare

0.2.0

  • Add RequestOptions; configuration points for backend implementation details such as api version and timeout.
  • Support a general model naming schema
  • GenerativeModelFutures now correctly passes the prompt through

v0.1.2

05 Jan 21:27
7043908
Compare
Choose a tag to compare

0.1.2

  • Ensure model names are always prefixed with 'models/'
  • Update proguard rules to not obfuscate serialization types
  • An instance of Chat will now throw an InvalidStateException if multiple requests are made simultaneously.
  • Expose the instances used to create Future APIs in java
  • Update the serialization of ImagePart to compress to JPEG encoding at 80% quality, from PNG encoding at 100% quality
  • Prevent Kotlin version from leaking 1.9.0 instead of 1.8.22
implementation("com.google.ai.client.generativeai:generativeai:0.1.2")

https://maven.google.com/web/index.html?q=generative#com.google.ai.client.generativeai:generativeai:0.1.2