- [fixed] Improved error message when using an invalid location. (#6428)
- [fixed] Fixed issue where Firebase App Check error tokens were unintentionally missing from the requests. (#6409)
- [fixed] Clarified in the documentation that
Schema.integer
andSchema.float
only provide hints to the model. (#6420) - [fixed] Fixed issue were
Schema.double
set the format parameter inSchema
. (#6432)
- [fixed] Fixed issue where authorization headers weren't correctly formatted and were ignored by the backend. (#6400)
-
[feature] {{firebase_vertexai}} is now Generally Available (GA) and can be used in production apps.
Use the {{firebase_vertexai_sdk}} to call the {{gemini_api_vertexai_long}} directly from your app. This client SDK is built specifically for use with Android apps, offering security options against unauthorized clients as well as integrations with other Firebase services.
-
If you're new to this library, visit the getting started guide.
-
If you were using the preview version of the library, visit the migration guide to learn about some important updates.
-
-
[changed] Breaking Change: Changed
functionCallingConfig
parameter type to be nullable inToolConfig
. (#6373) -
[changed] Breaking Change: Removed
functionResponse
accessor method fromGenerateContentResponse
. (#6373) -
[changed] Breaking Change: Migrated
FirebaseVertexAIException
from a sealed class to an abstract class, and marked constructors as internal. (#6368) -
[feature] Added support for
title
andpublicationDate
in citations. (#6309) -
[feature] Added support for
frequencyPenalty
,presencePenalty
, andHarmBlockMethod
. (#6309) -
[changed] Breaking Change: Introduced
Citations
class. NowCitationMetadata
wraps that type. (#6276) -
[changed] Breaking Change: Reworked
Schema
declaration mechanism. (#6258) -
[changed] Breaking Change: Reworked function calling mechanism to use the new
Schema
format. Function calls no longer use native types, nor include references to the actual executable code. (#6258) -
[changed] Breaking Change: Made
totalBillableCharacters
field inCountTokens
nullable and optional. (#6294) -
[changed] Breaking Change: Removed
UNKNOWN
option for theHarmBlockThreshold
enum. (#6294) -
[changed] Breaking Change: Removed
UNSPECIFIED
option for theHarmBlockThreshold
,HarmProbability
,HarmSeverity
, andBlockReason
enums. (#6294) -
[changed] Breaking Change: Renamed
BlockThreshold
asHarmBlockThreshold
. (#6262) -
[changed] Breaking Change: Renamed all types and methods starting with
blob
to start withinlineData
. (#6309) -
[changed] Breaking Change: Changed the order of arguments in
InlineDataPart
to matchImagePart
. (#6340) -
[changed] Breaking Change: Changed
RequestOption
to accept onlylong
timeout values. (#6289) -
[changed] Breaking Change: Moved
requestOptions
to the last positional argument in thegenerativeModel
argument list. (#6292) -
[changed] Breaking Change: Replaced sealed classes with abstract classes for
StringFormat
. (#6334) -
[changed] Breaking Change: Refactored enum classes to be normal classes. (#6340)
-
[changed] Breaking Change: Marked
GenerativeModel
properties as private. (#6309) -
[changed] Breaking Change: Changed
method
parameter type to be nullable inSafetySettings
. (#6379)
- [changed] Merged core networking code into VertexAI from a separate library
- [feature] added support for
responseSchema
inGenerationConfig
.
- [changed] Breaking Change: changed
Schema.int
to return 32 bit integers instead of 64 bit (long). - [changed] Added
Schema.long
to return 64-bit integer numbers. - [changed] Added
Schema.double
to handle floating point numbers. - [changed] Marked
Schema.num
as deprecated, prefer usingSchema.double
. - [fixed] Fixed an issue with decoding JSON literals (#6028).
- [feature] Added support for
responseMimeType
inGenerationConfig
. - [changed] Renamed
GoogleGenerativeAIException
toFirebaseVertexAIException
. - [changed] Updated the KDocs for various classes and functions.