Enforce maximum audio duration limit and bypass Gemini

This commit is contained in:
Hamza-Ayed
2026-05-22 15:38:03 +03:00
parent f1d57e2763
commit df8d905da7
2 changed files with 17 additions and 11 deletions

View File

@@ -184,6 +184,7 @@ async function startSession(session_key, webhook_url) {
body: body,
audio: audioBase64,
mimeType: audioMimeType,
duration: msg.message?.audioMessage?.seconds ? Number(msg.message.audioMessage.seconds) : null,
image: imageBase64,
imageMimeType: imageMimeType,
timestamp: msg.messageTimestamp