@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.
package/dist/index.cjs.js CHANGED
@@ -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
@@ -2766,7 +2766,9 @@ class ChatSessionBase {
2766
2766
  else {
2767
2767
  formattedContent = formatNewContent(request);
2768
2768
  }
2769
- const formattedRequest = this._formatRequest(formattedContent, tempHistory);
2769
+ const formattedRequest = this._formatRequest(formattedContent, [
2770
+ ...tempHistory
2771
+ ]);
2770
2772
  tempHistory.push(formattedContent);
2771
2773
  const result = await this._callGenerateContent(formattedRequest, singleRequestOptions);
2772
2774
  if (result) {
@@ -2836,8 +2838,10 @@ class ChatSessionBase {
2836
2838
  else {
2837
2839
  formattedContent = formatNewContent(request);
2838
2840
  }
2841
+ const formattedRequest = this._formatRequest(formattedContent, [
2842
+ ...tempHistory
2843
+ ]);
2839
2844
  tempHistory.push(formattedContent);
2840
- const formattedRequest = this._formatRequest(formattedContent, tempHistory);
2841
2845
  result = await this._callGenerateContentStream(formattedRequest, singleRequestOptions);
2842
2846
  functionCalls = this._getCallableFunctionCalls(result.firstValue);
2843
2847
  if (functionCalls &&