@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.native.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.native.d.ts
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.native.js
CHANGED
|
@@ -2543,7 +2543,7 @@ async function getTranscript(model, args, cleanHallucinations = true) {
|
|
|
2543
2543
|
var _a, _b, _c, _d, _e, _f;
|
|
2544
2544
|
const getGeminiTranscript = (_b = (_a = api).httpsCallable) == null ? void 0 : _b.call(_a, "getGeminiTranscript");
|
|
2545
2545
|
const getAssemblyAITranscript = (_d = (_c = api).httpsCallable) == null ? void 0 : _d.call(_c, "transcribeAssemblyAIAudio");
|
|
2546
|
-
const getWhisperTranscript = (_f = (_e = api).httpsCallable) == null ? void 0 : _f.call(_e, "
|
|
2546
|
+
const getWhisperTranscript = (_f = (_e = api).httpsCallable) == null ? void 0 : _f.call(_e, "generateGroqTranscript");
|
|
2547
2547
|
if (model === "whisper") {
|
|
2548
2548
|
try {
|
|
2549
2549
|
const { data } = await (getWhisperTranscript == null ? void 0 : getWhisperTranscript({
|
|
@@ -2589,6 +2589,7 @@ async function getTranscriptCycle(args) {
|
|
|
2589
2589
|
let lastError = null;
|
|
2590
2590
|
for (const model of models) {
|
|
2591
2591
|
try {
|
|
2592
|
+
console.log("Getting transcript from", model);
|
|
2592
2593
|
const transcriptResult = await getTranscript(model, args, false);
|
|
2593
2594
|
const rawTranscript = transcriptResult || "";
|
|
2594
2595
|
transcript = cleanHallucinatedTranscript(rawTranscript);
|