@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.
@@ -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.0";
7
+ var version = "2.13.1-20260615181107";
8
8
 
9
9
  /**
10
10
  * @license
@@ -2791,6 +2791,12 @@ class ChatSession extends ChatSessionBase {
2791
2791
  validateChatHistory(params.history);
2792
2792
  this._history = params.history;
2793
2793
  }
2794
+ if (this.params?.systemInstruction != null) {
2795
+ this.params = {
2796
+ ...this.params,
2797
+ systemInstruction: formatSystemInstruction(this.params.systemInstruction)
2798
+ };
2799
+ }
2794
2800
  }
2795
2801
  /**
2796
2802
  * Format Content into a request for generateContent or