@firebase/ai 2.13.0 → 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 +3 -3
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.13.
|
|
11
|
+
var version = "2.13.1-20260615181107";
|
|
12
12
|
|
|
13
13
|
/**
|
|
14
14
|
* @license
|
|
@@ -3145,6 +3145,12 @@ class ChatSession extends ChatSessionBase {
|
|
|
3145
3145
|
validateChatHistory(params.history);
|
|
3146
3146
|
this._history = params.history;
|
|
3147
3147
|
}
|
|
3148
|
+
if (this.params?.systemInstruction != null) {
|
|
3149
|
+
this.params = {
|
|
3150
|
+
...this.params,
|
|
3151
|
+
systemInstruction: formatSystemInstruction(this.params.systemInstruction)
|
|
3152
|
+
};
|
|
3153
|
+
}
|
|
3148
3154
|
}
|
|
3149
3155
|
/**
|
|
3150
3156
|
* Format Content into a request for generateContent or
|