@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.
@@ -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 { FirebaseFirestoreTypes, Timestamp } from '@react-native-firebase/firestore';
6
- import { Firestore, getDoc, getDocs, addDoc, setDoc, updateDoc, deleteDoc, runTransaction, writeBatch, doc, collection, query, serverTimestamp, orderBy, limit, startAt, startAfter, endAt, endBefore, where, increment, Timestamp as Timestamp$1, FieldValue } from 'firebase/firestore';
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 {
@@ -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 { FirebaseFirestoreTypes, Timestamp } from '@react-native-firebase/firestore';
6
- import { Firestore, getDoc, getDocs, addDoc, setDoc, updateDoc, deleteDoc, runTransaction, writeBatch, doc, collection, query, serverTimestamp, orderBy, limit, startAt, startAfter, endAt, endBefore, where, increment, Timestamp as Timestamp$1, FieldValue } from 'firebase/firestore';
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 {
@@ -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, "transcribeAudio");
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);