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 <noreply@anthropic.com>
This commit is contained in:
2026-10-01 17:07:41 +02:00
co-authored by Claude Sonnet 5.5
parent e6738bcd3e
commit ad2e3e0e8e
+1 -2
View File
@@ -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()))