Send videos to Gemini at 3 fps and allow larger WebSocket payloads

Map video_url parts to inline data for Google and attach
videoMetadata.fps = 3 to every video part (media resolution stays at
the default). Raise the WebSocket maxPayloadLength from Bun's 16 MB
default to 100 MB so threads with several base64 videos still fit.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-12 18:57:42 +00:00
co-authored by Claude Opus 5.5
parent 399406a23e
commit 2523deb0e3
2 changed files with 9 additions and 1 deletions
+2
View File
@@ -48,6 +48,8 @@ Bun.serve({
},
websocket: {
// Videos ride along as base64 in every request; Bun's 16 MB default fits only a handful
maxPayloadLength: 100 * 1024 * 1024,
open(ws) {
const { uid } = ws.data
addSocket(uid, ws)