@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/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/index.node.mjs
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.3dd4e65d9";
|
|
8
8
|
|
|
9
9
|
/**
|
|
10
10
|
* @license
|
|
@@ -2454,7 +2454,9 @@ class ChatSessionBase {
|
|
|
2454
2454
|
else {
|
|
2455
2455
|
formattedContent = formatNewContent(request);
|
|
2456
2456
|
}
|
|
2457
|
-
const formattedRequest = this._formatRequest(formattedContent,
|
|
2457
|
+
const formattedRequest = this._formatRequest(formattedContent, [
|
|
2458
|
+
...tempHistory
|
|
2459
|
+
]);
|
|
2458
2460
|
tempHistory.push(formattedContent);
|
|
2459
2461
|
const result = await this._callGenerateContent(formattedRequest, singleRequestOptions);
|
|
2460
2462
|
if (result) {
|
|
@@ -2524,8 +2526,10 @@ class ChatSessionBase {
|
|
|
2524
2526
|
else {
|
|
2525
2527
|
formattedContent = formatNewContent(request);
|
|
2526
2528
|
}
|
|
2529
|
+
const formattedRequest = this._formatRequest(formattedContent, [
|
|
2530
|
+
...tempHistory
|
|
2531
|
+
]);
|
|
2527
2532
|
tempHistory.push(formattedContent);
|
|
2528
|
-
const formattedRequest = this._formatRequest(formattedContent, tempHistory);
|
|
2529
2533
|
result = await this._callGenerateContentStream(formattedRequest, singleRequestOptions);
|
|
2530
2534
|
functionCalls = this._getCallableFunctionCalls(result.firstValue);
|
|
2531
2535
|
if (functionCalls &&
|