@speakableio/core 0.1.39 → 0.1.41

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.
@@ -2723,7 +2723,7 @@ var useBaseOpenAI = ({
2723
2723
  });
2724
2724
  const getTranscript = async (audioUrl, language) => {
2725
2725
  try {
2726
- const transcript = await (getAssemblyAITranscript == null ? void 0 : getAssemblyAITranscript({
2726
+ const { data: transcript } = await (getAssemblyAITranscript == null ? void 0 : getAssemblyAITranscript({
2727
2727
  audioUrl,
2728
2728
  language
2729
2729
  }));
@@ -2847,6 +2847,7 @@ var useBaseOpenAI = ({
2847
2847
  }
2848
2848
  };
2849
2849
  const getAIResponse = async ({ cardId, transcript }) => {
2850
+ var _a;
2850
2851
  try {
2851
2852
  const card = getCardFromCache({
2852
2853
  cardId,
@@ -2870,7 +2871,7 @@ var useBaseOpenAI = ({
2870
2871
  ]);
2871
2872
  proficiencyData = (proficiencyResult == null ? void 0 : proficiencyResult.data) || {};
2872
2873
  feedbackData = {
2873
- ...geminiResult.data,
2874
+ ...(_a = geminiResult == null ? void 0 : geminiResult.data) != null ? _a : {},
2874
2875
  // @ts-ignore
2875
2876
  proficiency_level: (proficiencyData == null ? void 0 : proficiencyData.proficiency_level) || null
2876
2877
  };