@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.
- package/dist/esm/index.esm.js +3 -3
- package/dist/esm/index.esm.js.map +1 -1
- package/dist/index.cjs.js +3 -3
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.node.cjs.js +3 -3
- package/dist/index.node.cjs.js.map +1 -1
- package/dist/index.node.mjs +3 -3
- package/dist/index.node.mjs.map +1 -1
- package/package.json +8 -8
package/dist/index.node.mjs
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.6.
|
|
7
|
+
var version = "2.6.1-canary.8e26a5590";
|
|
8
8
|
|
|
9
9
|
/**
|
|
10
10
|
* @license
|
|
@@ -1260,7 +1260,7 @@ async function makeRequest(requestUrlParams, body) {
|
|
|
1260
1260
|
throw new AIError(AIErrorCode.API_NOT_ENABLED, `The Firebase AI SDK requires the Firebase AI ` +
|
|
1261
1261
|
`API ('firebasevertexai.googleapis.com') to be enabled in your ` +
|
|
1262
1262
|
`Firebase project. Enable this API by visiting the Firebase Console ` +
|
|
1263
|
-
`at https://console.firebase.google.com/project/${url.params.apiSettings.project}/
|
|
1263
|
+
`at https://console.firebase.google.com/project/${url.params.apiSettings.project}/ailogic/ ` +
|
|
1264
1264
|
`and clicking "Get started". If you enabled this API recently, ` +
|
|
1265
1265
|
`wait a few minutes for the action to propagate to our systems and ` +
|
|
1266
1266
|
`then retry.`, {
|
|
@@ -2011,7 +2011,7 @@ async function generateContentStreamOnCloud(apiSettings, model, params, requestO
|
|
|
2011
2011
|
}
|
|
2012
2012
|
async function generateContentStream(apiSettings, model, params, chromeAdapter, requestOptions) {
|
|
2013
2013
|
const callResult = await callCloudOrDevice(params, chromeAdapter, () => chromeAdapter.generateContentStream(params), () => generateContentStreamOnCloud(apiSettings, model, params, requestOptions));
|
|
2014
|
-
return processStream(callResult.response, apiSettings);
|
|
2014
|
+
return processStream(callResult.response, apiSettings, callResult.inferenceSource);
|
|
2015
2015
|
}
|
|
2016
2016
|
async function generateContentOnCloud(apiSettings, model, params, requestOptions) {
|
|
2017
2017
|
if (apiSettings.backend.backendType === BackendType.GOOGLE_AI) {
|