@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.
@@ -4,7 +4,7 @@ import { FirebaseError, Deferred, getModularInstance } from '@firebase/util';
4
4
  import { Logger } from '@firebase/logger';
5
5
 
6
6
  var name = "@firebase/ai";
7
- var version = "2.12.0-20260505185142";
7
+ var version = "2.12.0-eap-crashlytics.3dd4e65d9";
8
8
 
9
9
  /**
10
10
  * @license
@@ -2762,7 +2762,9 @@ class ChatSessionBase {
2762
2762
  else {
2763
2763
  formattedContent = formatNewContent(request);
2764
2764
  }
2765
- const formattedRequest = this._formatRequest(formattedContent, tempHistory);
2765
+ const formattedRequest = this._formatRequest(formattedContent, [
2766
+ ...tempHistory
2767
+ ]);
2766
2768
  tempHistory.push(formattedContent);
2767
2769
  const result = await this._callGenerateContent(formattedRequest, singleRequestOptions);
2768
2770
  if (result) {
@@ -2832,8 +2834,10 @@ class ChatSessionBase {
2832
2834
  else {
2833
2835
  formattedContent = formatNewContent(request);
2834
2836
  }
2837
+ const formattedRequest = this._formatRequest(formattedContent, [
2838
+ ...tempHistory
2839
+ ]);
2835
2840
  tempHistory.push(formattedContent);
2836
- const formattedRequest = this._formatRequest(formattedContent, tempHistory);
2837
2841
  result = await this._callGenerateContentStream(formattedRequest, singleRequestOptions);
2838
2842
  functionCalls = this._getCallableFunctionCalls(result.firstValue);
2839
2843
  if (functionCalls &&