@firebase/ai 2.13.0-eap-crashlytics.558ee841d → 2.13.1-20260615181107
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 -1
- package/dist/esm/index.esm.js.map +1 -1
- package/dist/index.cjs.js +7 -1
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.node.cjs.js +7 -1
- package/dist/index.node.cjs.js.map +1 -1
- package/dist/index.node.mjs +7 -1
- 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.13.
|
|
7
|
+
var version = "2.13.1-20260615181107";
|
|
8
8
|
|
|
9
9
|
/**
|
|
10
10
|
* @license
|
|
@@ -3141,6 +3141,12 @@ class ChatSession extends ChatSessionBase {
|
|
|
3141
3141
|
validateChatHistory(params.history);
|
|
3142
3142
|
this._history = params.history;
|
|
3143
3143
|
}
|
|
3144
|
+
if (this.params?.systemInstruction != null) {
|
|
3145
|
+
this.params = {
|
|
3146
|
+
...this.params,
|
|
3147
|
+
systemInstruction: formatSystemInstruction(this.params.systemInstruction)
|
|
3148
|
+
};
|
|
3149
|
+
}
|
|
3144
3150
|
}
|
|
3145
3151
|
/**
|
|
3146
3152
|
* Format Content into a request for generateContent or
|