@firebase/ai 2.12.0-20260505185142 → 2.12.0-eap-crashlytics.06423a1af
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/esm/index.esm.js +7 -3
- package/dist/esm/index.esm.js.map +1 -1
- package/dist/index.cjs.js +7 -3
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.node.cjs.js +7 -3
- package/dist/index.node.cjs.js.map +1 -1
- package/dist/index.node.mjs +7 -3
- package/dist/index.node.mjs.map +1 -1
- package/package.json +8 -8
package/dist/esm/index.esm.js
CHANGED
|
@@ -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-
|
|
7
|
+
var version = "2.12.0-eap-crashlytics.06423a1af";
|
|
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,
|
|
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 &&
|