@absolutejs/voice-deepgram 0.0.20-beta.96 → 0.0.20-beta.98

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.
Files changed (2) hide show
  1. package/dist/index.js +2 -2
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -94,7 +94,7 @@ var collectLexiconTerms = (options) => (options.lexicon ?? []).flatMap((entry) =
94
94
  ]);
95
95
  var normalizeKeyterms = (value) => value === undefined ? [] : Array.isArray(value) ? value : [value];
96
96
  var MAX_KEYTERM_TOKEN_BUDGET = 450;
97
- var MAX_KEYTERM_COUNT = 200;
97
+ var MAX_KEYTERM_COUNT = 48;
98
98
  var MAX_KEYTERM_LENGTH = 48;
99
99
  var estimateKeytermTokens = (term) => Math.max(1, Math.ceil(term.trim().length / 4));
100
100
  var countScripts = (value) => {
@@ -419,7 +419,7 @@ var deepgram = (config) => ({
419
419
  }
420
420
  opened = true;
421
421
  clearOpenTimeout();
422
- const keepAliveEnabled = !String(config.model).startsWith("flux");
422
+ const keepAliveEnabled = config.keepAliveMs !== 0;
423
423
  while (pendingAudio.length > 0) {
424
424
  const next = pendingAudio.shift();
425
425
  if (next) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@absolutejs/voice-deepgram",
3
- "version": "0.0.20-beta.96",
3
+ "version": "0.0.20-beta.98",
4
4
  "description": "Deepgram speech-to-text adapter for @absolutejs/voice",
5
5
  "repository": {
6
6
  "type": "git",