@firebase/ai 2.12.0-20260505185142 → 2.12.0-eap-crashlytics.3dd4e65d9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -8,7 +8,7 @@ var util = require('@firebase/util');
8
8
  var logger$1 = require('@firebase/logger');
9
9
 
10
10
  var name = "@firebase/ai";
11
- var version = "2.12.0-20260505185142";
11
+ var version = "2.12.0-eap-crashlytics.3dd4e65d9";
12
12
 
13
13
  /**
14
14
  * @license
@@ -2458,7 +2458,9 @@ class ChatSessionBase {
2458
2458
  else {
2459
2459
  formattedContent = formatNewContent(request);
2460
2460
  }
2461
- const formattedRequest = this._formatRequest(formattedContent, tempHistory);
2461
+ const formattedRequest = this._formatRequest(formattedContent, [
2462
+ ...tempHistory
2463
+ ]);
2462
2464
  tempHistory.push(formattedContent);
2463
2465
  const result = await this._callGenerateContent(formattedRequest, singleRequestOptions);
2464
2466
  if (result) {
@@ -2528,8 +2530,10 @@ class ChatSessionBase {
2528
2530
  else {
2529
2531
  formattedContent = formatNewContent(request);
2530
2532
  }
2533
+ const formattedRequest = this._formatRequest(formattedContent, [
2534
+ ...tempHistory
2535
+ ]);
2531
2536
  tempHistory.push(formattedContent);
2532
- const formattedRequest = this._formatRequest(formattedContent, tempHistory);
2533
2537
  result = await this._callGenerateContentStream(formattedRequest, singleRequestOptions);
2534
2538
  functionCalls = this._getCallableFunctionCalls(result.firstValue);
2535
2539
  if (functionCalls &&