summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Omni/Agent/Telegram/Media.hs10
1 files changed, 5 insertions, 5 deletions
diff --git a/Omni/Agent/Telegram/Media.hs b/Omni/Agent/Telegram/Media.hs
index 137d7d3..6539b79 100644
--- a/Omni/Agent/Telegram/Media.hs
+++ b/Omni/Agent/Telegram/Media.hs
@@ -274,22 +274,22 @@ transcribeVoice apiKey audioBytes = do
let base64Data = TL.toStrict (TLE.decodeUtf8 (B64.encode audioBytes))
body =
Aeson.object
- [ "model" .= ("google/gemini-2.0-flash-001" :: Text),
+ [ "model" .= ("google/gemini-2.5-flash" :: Text),
"messages"
.= [ Aeson.object
[ "role" .= ("user" :: Text),
"content"
.= [ Aeson.object
- [ "type" .= ("text" :: Text),
- "text" .= ("transcribe this audio exactly, return only the transcription with no commentary" :: Text)
- ],
- Aeson.object
[ "type" .= ("input_audio" :: Text),
"input_audio"
.= Aeson.object
[ "data" .= base64Data,
"format" .= ("ogg" :: Text)
]
+ ],
+ Aeson.object
+ [ "type" .= ("text" :: Text),
+ "text" .= ("transcribe this audio exactly. return ONLY the transcription, no commentary or preamble." :: Text)
]
]
]