From ad2e3e0e8e33a7029eb0051d34b30f772608a6cd Mon Sep 17 00:00:00 2001 From: Mathias Date: Thu, 1 Oct 2026 17:07:41 +0200 Subject: [PATCH] fix(cmd): serve now actually sets the upload chat budget and model cmdServe assigned Uploads and UploadLimits but not UploadChatMaxChars, so chat over a long recording would have used the 18,000-char caption default. It now calls wireUploads, which is tested. Co-Authored-By: Claude Sonnet 5.5 --- cmd/tapir/main.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/cmd/tapir/main.go b/cmd/tapir/main.go index 4df1cb7..b94fe5d 100644 --- a/cmd/tapir/main.go +++ b/cmd/tapir/main.go @@ -215,9 +215,8 @@ func cmdServe(ctx context.Context, log *slog.Logger) error { if err != nil { return err } + wireUploads(app, cfg, intake) if intake != nil { - app.Uploads = intake - app.UploadLimits = uploadLimits(cfg) go worker.Run(ctx) log.Info("audio upload enabled", "model", cfg.TranscribeModel, "fallback", cfg.TranscribeFallbackModel, "max_mb", cfg.UploadMaxBytes>>20, "max_minutes", int(cfg.UploadMaxDuration.Minutes()))