@firebase/ai 1.4.0 → 1.4.1

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.
@@ -346,11 +346,10 @@ export declare interface CountTokensResponse {
346
346
  */
347
347
  totalTokens: number;
348
348
  /**
349
+ * @deprecated Use `totalTokens` instead. This property is undefined when using models greater than `gemini-1.5-*`.
350
+ *
349
351
  * The total number of billable characters counted across all instances
350
352
  * from the request.
351
- *
352
- * This property is only supported when using the Vertex AI Gemini API ({@link VertexAIBackend}).
353
- * When using the Gemini Developer API ({@link GoogleAIBackend}), this property is not supported and will default to 0.
354
353
  */
355
354
  totalBillableCharacters?: number;
356
355
  /**
package/dist/ai.d.ts CHANGED
@@ -383,11 +383,10 @@ export declare interface CountTokensResponse {
383
383
  */
384
384
  totalTokens: number;
385
385
  /**
386
+ * @deprecated Use `totalTokens` instead. This property is undefined when using models greater than `gemini-1.5-*`.
387
+ *
386
388
  * The total number of billable characters counted across all instances
387
389
  * from the request.
388
- *
389
- * This property is only supported when using the Vertex AI Gemini API ({@link VertexAIBackend}).
390
- * When using the Gemini Developer API ({@link GoogleAIBackend}), this property is not supported and will default to 0.
391
390
  */
392
391
  totalBillableCharacters?: number;
393
392
  /**
@@ -5,7 +5,7 @@ import { Logger } from '@firebase/logger';
5
5
  import { __asyncGenerator, __await } from 'tslib';
6
6
 
7
7
  var name = "@firebase/ai";
8
- var version = "1.4.0";
8
+ var version = "1.4.1";
9
9
 
10
10
  /**
11
11
  * @license
@@ -243,11 +243,10 @@ export interface CountTokensResponse {
243
243
  */
244
244
  totalTokens: number;
245
245
  /**
246
+ * @deprecated Use `totalTokens` instead. This property is undefined when using models greater than `gemini-1.5-*`.
247
+ *
246
248
  * The total number of billable characters counted across all instances
247
249
  * from the request.
248
- *
249
- * This property is only supported when using the Vertex AI Gemini API ({@link VertexAIBackend}).
250
- * When using the Gemini Developer API ({@link GoogleAIBackend}), this property is not supported and will default to 0.
251
250
  */
252
251
  totalBillableCharacters?: number;
253
252
  /**
package/dist/index.cjs.js CHANGED
@@ -9,7 +9,7 @@ var logger$1 = require('@firebase/logger');
9
9
  var tslib = require('tslib');
10
10
 
11
11
  var name = "@firebase/ai";
12
- var version = "1.4.0";
12
+ var version = "1.4.1";
13
13
 
14
14
  /**
15
15
  * @license
@@ -9,7 +9,7 @@ var logger$1 = require('@firebase/logger');
9
9
  var tslib = require('tslib');
10
10
 
11
11
  var name = "@firebase/ai";
12
- var version = "1.4.0";
12
+ var version = "1.4.1";
13
13
 
14
14
  /**
15
15
  * @license
@@ -5,7 +5,7 @@ import { Logger } from '@firebase/logger';
5
5
  import { __asyncGenerator, __await } from 'tslib';
6
6
 
7
7
  var name = "@firebase/ai";
8
- var version = "1.4.0";
8
+ var version = "1.4.1";
9
9
 
10
10
  /**
11
11
  * @license
@@ -243,11 +243,10 @@ export interface CountTokensResponse {
243
243
  */
244
244
  totalTokens: number;
245
245
  /**
246
+ * @deprecated Use `totalTokens` instead. This property is undefined when using models greater than `gemini-1.5-*`.
247
+ *
246
248
  * The total number of billable characters counted across all instances
247
249
  * from the request.
248
- *
249
- * This property is only supported when using the Vertex AI Gemini API ({@link VertexAIBackend}).
250
- * When using the Gemini Developer API ({@link GoogleAIBackend}), this property is not supported and will default to 0.
251
250
  */
252
251
  totalBillableCharacters?: number;
253
252
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@firebase/ai",
3
- "version": "1.4.0",
3
+ "version": "1.4.1",
4
4
  "description": "The Firebase AI SDK",
5
5
  "author": "Firebase <firebase-support@google.com> (https://firebase.google.com/)",
6
6
  "engines": {
@@ -39,6 +39,7 @@
39
39
  "test:ci": "yarn testsetup && node ../../scripts/run_tests_in_ci.js -s test",
40
40
  "test:skip-clone": "karma start",
41
41
  "test:browser": "yarn testsetup && karma start",
42
+ "test:integration": "karma start --integration",
42
43
  "api-report": "api-extractor run --local --verbose",
43
44
  "typings:public": "node ../../scripts/build/use_typings.js ./dist/ai-public.d.ts",
44
45
  "trusted-type-check": "tsec -p tsconfig.json --noEmit"
@@ -49,14 +50,14 @@
49
50
  },
50
51
  "dependencies": {
51
52
  "@firebase/app-check-interop-types": "0.3.3",
52
- "@firebase/component": "0.6.17",
53
+ "@firebase/component": "0.6.18",
53
54
  "@firebase/logger": "0.4.4",
54
- "@firebase/util": "1.12.0",
55
+ "@firebase/util": "1.12.1",
55
56
  "tslib": "^2.1.0"
56
57
  },
57
58
  "license": "Apache-2.0",
58
59
  "devDependencies": {
59
- "@firebase/app": "0.13.1",
60
+ "@firebase/app": "0.13.2",
60
61
  "@rollup/plugin-json": "6.1.0",
61
62
  "rollup": "2.79.2",
62
63
  "rollup-plugin-replace": "2.2.0",