TomFrankly / pipedream-notion-voice-notes

Take notes with your voice and send them to Notion
94 stars 49 forks source link

Language detection failed with error: Cannot read properties of undefined (reading 'completions') #85

Open jujus88 opened 1 month ago

jujus88 commented 1 month ago

Which cloud storage app are you using? Google Drive**

Have you tried updating your workflow? YES Please follow the steps here, and ensure you've tested the latest version of the workflow: https://thomasjfrank.com/how-to-transcribe-audio-to-text-with-chatgpt-and-notion/#update

Does the issue only happen while testing the workflow, or does it happen during normal, automated runs? It happens only when i need summary in Russian instead of English, when transcript is in Russian. It would make sense to leave it blanc, but in this case summary comes in English (and it works just fine).

Please paste the contents of your Logs tab from the notion_voice_notes action step.

Error Language detection failed with error: Cannot read properties of undefined (reading 'completions')

DETAILS at Object.detectLanguage (file:///tmp/pdg/dist/code/16157ccb517312283553eaaa945076926a83e8862411456e6deb94d0e9fdf944/code/helpers/translate-transcript.mjs:67:11) at Object.run (file:///tmp/pdg/dist/code/16157ccb517312283553eaaa945076926a83e8862411456e6deb94d0e9fdf944/code/Notion-Voice-Notes.mjs:2547:29) at null.executeComponent (/var/task/launch_worker.js:288:22) at MessagePort.messageHandler (/var/task/launch_worker.js:788:28)

Снимок экрана 2024-05-28 в 20 40 06