@firebase/ai 2.6.0 → 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/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 +1 -1
package/dist/esm/index.esm.js
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-20251215180848";
|
|
8
8
|
|
|
9
9
|
/**
|
|
10
10
|
* @license
|
|
@@ -1568,7 +1568,7 @@ async function makeRequest(requestUrlParams, body) {
|
|
|
1568
1568
|
throw new AIError(AIErrorCode.API_NOT_ENABLED, `The Firebase AI SDK requires the Firebase AI ` +
|
|
1569
1569
|
`API ('firebasevertexai.googleapis.com') to be enabled in your ` +
|
|
1570
1570
|
`Firebase project. Enable this API by visiting the Firebase Console ` +
|
|
1571
|
-
`at https://console.firebase.google.com/project/${url.params.apiSettings.project}/
|
|
1571
|
+
`at https://console.firebase.google.com/project/${url.params.apiSettings.project}/ailogic/ ` +
|
|
1572
1572
|
`and clicking "Get started". If you enabled this API recently, ` +
|
|
1573
1573
|
`wait a few minutes for the action to propagate to our systems and ` +
|
|
1574
1574
|
`then retry.`, {
|
|
@@ -2319,7 +2319,7 @@ async function generateContentStreamOnCloud(apiSettings, model, params, requestO
|
|
|
2319
2319
|
}
|
|
2320
2320
|
async function generateContentStream(apiSettings, model, params, chromeAdapter, requestOptions) {
|
|
2321
2321
|
const callResult = await callCloudOrDevice(params, chromeAdapter, () => chromeAdapter.generateContentStream(params), () => generateContentStreamOnCloud(apiSettings, model, params, requestOptions));
|
|
2322
|
-
return processStream(callResult.response, apiSettings);
|
|
2322
|
+
return processStream(callResult.response, apiSettings, callResult.inferenceSource);
|
|
2323
2323
|
}
|
|
2324
2324
|
async function generateContentOnCloud(apiSettings, model, params, requestOptions) {
|
|
2325
2325
|
if (apiSettings.backend.backendType === BackendType.GOOGLE_AI) {
|