@speakableio/core 1.0.58 → 1.0.60
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.native.d.mts +2 -2
- package/dist/index.native.d.ts +2 -2
- package/dist/index.native.js +2 -1
- package/dist/index.native.js.map +1 -1
- package/dist/index.native.mjs +2 -1
- package/dist/index.native.mjs.map +1 -1
- package/dist/index.web.d.mts +2 -2
- package/dist/index.web.js +2 -1
- package/dist/index.web.js.map +1 -1
- package/package.json +1 -1
package/dist/index.web.d.mts
CHANGED
|
@@ -2,8 +2,8 @@ import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import * as _tanstack_react_query from '@tanstack/react-query';
|
|
4
4
|
import { QueryClient } from '@tanstack/react-query';
|
|
5
|
-
import {
|
|
6
|
-
import { Firestore, getDoc, getDocs, addDoc, setDoc, updateDoc, deleteDoc, runTransaction, writeBatch, doc, collection, query, serverTimestamp, orderBy, limit, startAt, startAfter, endAt, endBefore, where, increment,
|
|
5
|
+
import { Timestamp, FirebaseFirestoreTypes } from '@react-native-firebase/firestore';
|
|
6
|
+
import { Timestamp as Timestamp$1, Firestore, getDoc, getDocs, addDoc, setDoc, updateDoc, deleteDoc, runTransaction, writeBatch, doc, collection, query, serverTimestamp, orderBy, limit, startAt, startAfter, endAt, endBefore, where, increment, FieldValue } from 'firebase/firestore';
|
|
7
7
|
|
|
8
8
|
type FirebaseInstance = FirebaseFirestoreTypes.Module | Firestore;
|
|
9
9
|
interface FirestoreHelpers {
|
package/dist/index.web.js
CHANGED
|
@@ -2427,7 +2427,7 @@ async function getTranscript(model, args, cleanHallucinations = true) {
|
|
|
2427
2427
|
var _a, _b, _c, _d, _e, _f;
|
|
2428
2428
|
const getGeminiTranscript = (_b = (_a = api).httpsCallable) == null ? void 0 : _b.call(_a, "getGeminiTranscript");
|
|
2429
2429
|
const getAssemblyAITranscript = (_d = (_c = api).httpsCallable) == null ? void 0 : _d.call(_c, "transcribeAssemblyAIAudio");
|
|
2430
|
-
const getWhisperTranscript = (_f = (_e = api).httpsCallable) == null ? void 0 : _f.call(_e, "
|
|
2430
|
+
const getWhisperTranscript = (_f = (_e = api).httpsCallable) == null ? void 0 : _f.call(_e, "generateGroqTranscript");
|
|
2431
2431
|
if (model === "whisper") {
|
|
2432
2432
|
try {
|
|
2433
2433
|
const { data } = await (getWhisperTranscript == null ? void 0 : getWhisperTranscript({
|
|
@@ -2473,6 +2473,7 @@ async function getTranscriptCycle(args) {
|
|
|
2473
2473
|
let lastError = null;
|
|
2474
2474
|
for (const model of models) {
|
|
2475
2475
|
try {
|
|
2476
|
+
console.log("Getting transcript from", model);
|
|
2476
2477
|
const transcriptResult = await getTranscript(model, args, false);
|
|
2477
2478
|
const rawTranscript = transcriptResult || "";
|
|
2478
2479
|
transcript = cleanHallucinatedTranscript(rawTranscript);
|