@firebase/ai 2.6.0 → 2.6.1-canary.8e26a5590

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.
@@ -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";
11
+ var version = "2.6.1-canary.8e26a5590";
12
12
 
13
13
  /**
14
14
  * @license
@@ -1264,7 +1264,7 @@ async function makeRequest(requestUrlParams, body) {
1264
1264
  throw new AIError(AIErrorCode.API_NOT_ENABLED, `The Firebase AI SDK requires the Firebase AI ` +
1265
1265
  `API ('firebasevertexai.googleapis.com') to be enabled in your ` +
1266
1266
  `Firebase project. Enable this API by visiting the Firebase Console ` +
1267
- `at https://console.firebase.google.com/project/${url.params.apiSettings.project}/genai/ ` +
1267
+ `at https://console.firebase.google.com/project/${url.params.apiSettings.project}/ailogic/ ` +
1268
1268
  `and clicking "Get started". If you enabled this API recently, ` +
1269
1269
  `wait a few minutes for the action to propagate to our systems and ` +
1270
1270
  `then retry.`, {
@@ -2015,7 +2015,7 @@ async function generateContentStreamOnCloud(apiSettings, model, params, requestO
2015
2015
  }
2016
2016
  async function generateContentStream(apiSettings, model, params, chromeAdapter, requestOptions) {
2017
2017
  const callResult = await callCloudOrDevice(params, chromeAdapter, () => chromeAdapter.generateContentStream(params), () => generateContentStreamOnCloud(apiSettings, model, params, requestOptions));
2018
- return processStream(callResult.response, apiSettings); // TODO: Map streaming responses
2018
+ return processStream(callResult.response, apiSettings, callResult.inferenceSource);
2019
2019
  }
2020
2020
  async function generateContentOnCloud(apiSettings, model, params, requestOptions) {
2021
2021
  if (apiSettings.backend.backendType === BackendType.GOOGLE_AI) {