@smart-cloud/ai-kit-ui 1.3.13 → 1.3.14
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/index.cjs +9 -9
- package/dist/index.js +9 -9
- package/package.json +1 -1
- package/src/doc-search/DocSearch.tsx +0 -12
package/package.json
CHANGED
|
@@ -422,8 +422,6 @@ const DocSearchBase: FC<Props> = (props) => {
|
|
|
422
422
|
setQuery(q);
|
|
423
423
|
}
|
|
424
424
|
|
|
425
|
-
console.log("Starting search with query:", q, "and audio:", audioBlob);
|
|
426
|
-
|
|
427
425
|
// Check if we can reuse cached audio (same blob within TTL)
|
|
428
426
|
const now = Date.now();
|
|
429
427
|
const isSameAudio =
|
|
@@ -437,16 +435,6 @@ const DocSearchBase: FC<Props> = (props) => {
|
|
|
437
435
|
blob: audioBlob,
|
|
438
436
|
uploadTimestamp: now,
|
|
439
437
|
};
|
|
440
|
-
console.log("Audio cache updated for new recording");
|
|
441
|
-
} else if (isSameAudio) {
|
|
442
|
-
console.log(
|
|
443
|
-
"Reusing cached audio (no re-upload needed within",
|
|
444
|
-
Math.round(
|
|
445
|
-
(AUDIO_CACHE_TTL - (now - audioCacheRef.current!.uploadTimestamp)) /
|
|
446
|
-
1000,
|
|
447
|
-
),
|
|
448
|
-
"seconds)",
|
|
449
|
-
);
|
|
450
438
|
}
|
|
451
439
|
|
|
452
440
|
reset();
|