Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
27 KiB
@firebase/ai
2.13.1
Patch Changes
-
9bef5ab#10035 - DeprecatedGoogleMaps.enableWidget, following the announcement by the Grounding for Google Maps service. -
6a9d3d1#10026 (fixes #9006) - Wrap params.systemInstruction with formatSystemInstruction() in the ChatSession constructor.
2.13.0
Minor Changes
-
f0752a0#9800 - AddinitializeDeviceModel()method to allow explicit initialization of on-device model in hybrid mode. -
bd08cae#9926 - Change "beta" (public preview) tags to "public" (generally available) for all hybrid inference features.
Patch Changes
bd2644b#9956 (fixes #9938) - Fix a bug that causedChatSession.sendMessageStream()andTemplateChatSession.sendMessageStream()to send duplicate user turns in the request.
2.12.0
Minor Changes
-
ffa39f6#9795 - AddedLiveSession.resumeSession()to allow resuming a previousLiveSession. Also addedcontextWindowCompressionfeature. -
86dc0db#9819 - Added support forImageConfig(aspect ratio and size). ExpandedFinishReasonvalues to include all currently available values provided by the models. -
345c5f6#9458 - AI Logic : Feature : Added support for Grounding with Google Maps.
Patch Changes
-
Updated dependencies [
8e384c9]:- @firebase/[email protected]
- @firebase/[email protected]
- @firebase/[email protected]
- @firebase/[email protected].1
2.11.1
Patch Changes
-
23ab5b9#9817 - Update code execution and URL context features to reflect that they are generally available and no longer public preview. -
6db5af4#9840 (fixes #9832) - FixTemplateChatSessiontype so it does not error on TypeScript build. See Github issue #9832.
2.11.0
Minor Changes
-
cccb6d0#9771 - [deprecated] All Imagen models are deprecated and will shut down as early as June 2026. As a replacement, you can migrate your apps to use Gemini Image models (the "Nano Banana" models). -
6cbe865#9816 - DeprecatetopKandtemperatureproperties for hybrid inference mode. -
9c8e864#9763 - AddstartChat()forTemplateGenerativeModel. -
9c8e864#9763 - Add automatic function calling and chat history for server prompt templates.
Patch Changes
f87c15e#9791 (fixes #9792) - Fixed a bug that causes the model to error if the user specifiesresponseSchemaorresponseJsonSchema.
2.10.0
Minor Changes
Patch Changes
- Updated dependencies [
2f7f426]:- @firebase/[email protected].0
- @firebase/[email protected]
2.9.0
Minor Changes
Patch Changes
- Updated dependencies [
eebba69]:- @firebase/[email protected].0
- @firebase/[email protected]
2.8.0
Minor Changes
-
8123231#9461 - AI Logic: Extend theLiveSession.receive()return types to include aLiveServiceGoingAwayNoticewhich signifies that the service will soon close the session. -
f9254b6#9475 - Remove "preview" tags from code execution and URL context documentation. -
2e74329#9462 - Add params onUsageMetadatathat provide cache-related usage data when the implicit caching feature is used.
Patch Changes
2.7.0
Minor Changes
-
2ecf78b#8890 (fixes #8859) - Add support forAbortSignal, allowing requests to be aborted. -
5579b38#9424 - Added ability to specify thinking levels inthinkingConfig. -
f044045#9440 - Update default hybrid-in-cloud model togemini-2.5-flash-lite.
2.6.1
Patch Changes
2.6.0
Minor Changes
2.5.0
Minor Changes
-
22e0a1a#9291 - DeprecatesendMediaChunks()andsendMediaStream(). Instead, use the new methods added to theLiveSessionclass. AddsendTextRealtime(),sendAudioReatime(), andsendVideoRealtime()to theLiveSessionclass. -
bc5a7c4#9330 - Add support for audio transcriptions in the Live API. -
c8263c4#9315 - AddinferenceSourceto the response fromgenerateContentandgenerateContentStream. This property indicates whether on-device or in-cloud inference was used to generate the result.
Patch Changes
2.4.0
Minor Changes
-
0bb2fe6#9272 - Added asendFunctionResponsesmethod toLiveSession, allowing function responses to be sent during realtime sessions. Fixed an issue where function responses during audio conversations caused the WebSocket connection to close. See GitHub Issue #9264.- Breaking Change: Changed the
functionCallingHandlerproperty inStartAudioConversationOptionsso that it now must return aPromise<FunctionResponse>. This breaking change is allowed in a minor release since the Live API is in Public Preview.
- Breaking Change: Changed the
-
0ffcb26#9254 - Added support for the URL context tool, which allows the model to access content from provided public web URLs to inform and enhance its responses.
Patch Changes
-
2596dd1#9255 - Imagen Generation is now Generally Available (GA). -
2596dd1#9255 - The Gemini Developer API is now Generally Available (GA). -
ea85128#9262 - Updated SDK to handle empty parts when streaming. -
7a7634f#9274 - Tag code execution with beta tag (public preview).
2.3.0
Minor Changes
-
06ab5c4#9236 - Added a newInferenceModeoption for the hybrid on-device capability:prefer_in_cloud. When this mode is selected, the SDK will attempt to use a cloud-hosted model first. If the call to the cloud-hosted model fails with a network-related error, the SDK will fall back to the on-device model, if it's available.
Patch Changes
-
c123766#9253 - Change documentation tags for hybrid inference from "EXPERIMENTAL" to "public preview".
2.2.1
Patch Changes
2.2.0
Minor Changes
-
9b63cd6#9192 - AddthoughtSummary()convenience method toEnhancedGenerateContentResponse. -
02280d7#9201 - Add support for limited-use tokens with Firebase App Check. These limited-use tokens are required for an upcoming optional feature called replay protection. We recommend enabling the usage of limited-use tokens now so that when replay protection becomes available, you can enable it sooner because more of your users will be on versions of your app that send limited-use tokens.
Patch Changes
-
84b8bed#9222 - Fixed an issue whereAIErrormessages were too long after including an entire response body. -
c5f08a9#9216 - Add 'includeSafetyAttributes' field to Predict request payloads. -
cbef6c6#9225 - Exclude ChromeAdapterImpl code from Node entry point.
2.1.0
Minor Changes
2.0.0
Major Changes
Minor Changes
-
a4ccd25#9068 - Add support for Grounding with Google Search. -
25b60fd#9128 - Update node "engines" version to a minimum of Node 20.
Patch Changes
-
ae976d0#8948 (fixes #8944) - Fix typings forfunctionDeclaration.parameters. -
Updated dependencies [
f18b25f,25b60fd]:- @firebase/[email protected]
- @firebase/[email protected]
- @firebase/[email protected].0
1.4.1
Patch Changes
-
b97eab3#9090 - Add deprecation label tototalBillableCharacters.totalTokensshould be used instead. -
Updated dependencies [
42ac401]:- @firebase/[email protected].1
- @firebase/[email protected]
1.4.0
Minor Changes
-
1933324#9026 - Add support forminItemsandmaxItemstoSchema. -
40be2db#9047 - Addtitle,maximum,minimum,propertyOrderingto Schema builder
1.3.0
Minor Changes
-
d5082f9#8931 - Add support for the Gemini Developer API, enabling usage in a free tier, and add newAIAPI to accomodate new product naming.
Patch Changes
-
050c1b6#8972 - PassGenerativeModel'sBaseParamsto created chat sessions. This fixes an issue whereGenerationConfigwould not be inherited fromChatSession. -
Updated dependencies [
8a03143]:- @firebase/[email protected].0
- @firebase/[email protected]
1.2.4
Patch Changes
- Updated dependencies [
9bcd1ea]:- @firebase/[email protected].3
- @firebase/[email protected]
1.2.3
Patch Changes
- Updated dependencies [
8593fa0]:- @firebase/[email protected].2
- @firebase/[email protected]
1.2.2
Patch Changes
- Updated dependencies [
ea1f913,0e12766]:- @firebase/[email protected].1
- @firebase/[email protected]
1.2.1
Patch Changes
-
648de84#8809 - Throw an error when initializing models ifappIdis not defined in the givenVertexAIinstance.
1.2.0
Minor Changes
-
25985ac#8827 - AddsystemInstruction,tools, andgenerationConfigtoCountTokensRequest. -
058afa2#8741 - Added missingBlockReasonandFinishReasonenum values.
1.1.0
Minor Changes
-
9d82665#8757 - Added support for modality-based token count. -
ce2c775#8683 - Public Preview Added support for generating images using the Imagen 3 model.
Patch Changes
-
554c7bd#8736 (fixes #8714) - Filter out empty text parts from streaming responses. -
Updated dependencies [
777f465]:- @firebase/[email protected].0
- @firebase/[email protected]
1.0.4
Patch Changes
97d48c7#8651 -FirebaseServerAppcan now be initalized with an App Check token instead of invoking the App CheckgetTokenmethod. This should unblock the use of App Check enforced products in SSR environments where the App Check SDK cannot be initialized.
1.0.3
Patch Changes
- Updated dependencies [
25a6204c1]:- @firebase/[email protected].3
- @firebase/[email protected]
1.0.2
Patch Changes
c540ba9ee#8663 - Clear fetch timeout after request completion. Fixes an issue that caused Node scripts to hang due to a pending timeout.
1.0.1
Patch Changes
-
1f1ba3fee#8587 - Remove indentation in VertexAI API Not Enabled error -
4db3d3e7b#8591 - Send App Check dummy token in header if there is an App Check getToken error. -
Updated dependencies [
b80711925]:- @firebase/[email protected]
- @firebase/[email protected]
- @firebase/[email protected]
- @firebase/[email protected].2
1.0.0
Major Changes
Patch Changes
-
479226bf3#8475 - Remove ES5 bundles. The minimum required ES version is now ES2017. -
Updated dependencies [
479226bf3]:- @firebase/[email protected]
- @firebase/[email protected]
- @firebase/[email protected].1
0.0.4
Patch Changes
- Updated dependencies [
16d62d4fa]:- @firebase/[email protected].0
- @firebase/[email protected]
0.0.3
Patch Changes
-
e7260e23d#8240 - Add a publicly exportedVertexAIErrorclass. -
Updated dependencies [
192561b15]:- @firebase/[email protected]
- @firebase/[email protected]
0.0.2
Patch Changes
3883133c3#8256 - Changetypespaths to point to rolled-up publicd.tsfiles. This fixes some TypeScript compiler errors users are seeing.
0.0.1
Patch Changes
-
506b8a6ab#8119 - Add the preview version of the VertexAI SDK. -
Updated dependencies [
ab883d016]:- @firebase/[email protected]
- @firebase/[email protected]
- @firebase/[email protected]
- @firebase/[email protected]