@firebase/ai 2.6.0-canary.f5fc6bf76 → 2.6.1-20251215180848

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/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.6.0-canary.f5fc6bf76";
11
+ var version = "2.6.1-20251215180848";
12
12
 
13
13
  /**
14
14
  * @license
@@ -1572,7 +1572,7 @@ async function makeRequest(requestUrlParams, body) {
1572
1572
  throw new AIError(AIErrorCode.API_NOT_ENABLED, `The Firebase AI SDK requires the Firebase AI ` +
1573
1573
  `API ('firebasevertexai.googleapis.com') to be enabled in your ` +
1574
1574
  `Firebase project. Enable this API by visiting the Firebase Console ` +
1575
- `at https://console.firebase.google.com/project/${url.params.apiSettings.project}/genai/ ` +
1575
+ `at https://console.firebase.google.com/project/${url.params.apiSettings.project}/ailogic/ ` +
1576
1576
  `and clicking "Get started". If you enabled this API recently, ` +
1577
1577
  `wait a few minutes for the action to propagate to our systems and ` +
1578
1578
  `then retry.`, {
@@ -2323,7 +2323,7 @@ async function generateContentStreamOnCloud(apiSettings, model, params, requestO
2323
2323
  }
2324
2324
  async function generateContentStream(apiSettings, model, params, chromeAdapter, requestOptions) {
2325
2325
  const callResult = await callCloudOrDevice(params, chromeAdapter, () => chromeAdapter.generateContentStream(params), () => generateContentStreamOnCloud(apiSettings, model, params, requestOptions));
2326
- return processStream(callResult.response, apiSettings); // TODO: Map streaming responses
2326
+ return processStream(callResult.response, apiSettings, callResult.inferenceSource);
2327
2327
  }
2328
2328
  async function generateContentOnCloud(apiSettings, model, params, requestOptions) {
2329
2329
  if (apiSettings.backend.backendType === BackendType.GOOGLE_AI) {