diff options
| author | Ben Sima <ben@bensima.com> | 2025-12-13 14:46:33 -0500 |
|---|---|---|
| committer | Ben Sima <ben@bensima.com> | 2025-12-13 14:46:33 -0500 |
| commit | 38c4ea7fcb86ea78448e7097fcd8689d37d78399 (patch) | |
| tree | 96137251440db989a5a11a06739f4dc67fa6f29c /Omni/Agent/Telegram.hs | |
| parent | 61ebcf0aeea6cfbdb70becf47bad38d001d8faa3 (diff) | |
fix: use OpenAI Whisper for voice transcription
OpenRouter's chat completion API doesn't properly pass audio to models.
Switched to calling OpenAI's /v1/audio/transcriptions endpoint directly
with the whisper-1 model.
Requires OPENAI_API_KEY environment variable.
Diffstat (limited to 'Omni/Agent/Telegram.hs')
| -rw-r--r-- | Omni/Agent/Telegram.hs | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/Omni/Agent/Telegram.hs b/Omni/Agent/Telegram.hs index ad2fc3b..61127b4 100644 --- a/Omni/Agent/Telegram.hs +++ b/Omni/Agent/Telegram.hs @@ -603,7 +603,6 @@ handleAuthorizedMessage tgConfig provider engineCfg msg uid userName chatId = do _ -> Types.tmText msg let userMessage = replyContext <> baseMessage - shouldEngage <- if Types.isGroupChat msg then do @@ -728,7 +727,6 @@ handleAuthorizedMessageBatch tgConfig provider engineCfg msg uid userName chatId _ -> "" let userMessage = mediaPrefix <> batchedText - shouldEngage <- if Types.isGroupChat msg then do |
