From 2e863da334f92084e936575b093b0577e026fa43 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gerg=C5=91=20M=C3=B3ricz?= Date: Fri, 23 May 2025 09:35:29 +0200 Subject: [PATCH] feat(api/v1/authMiddleware): add log to debug extract agent preview mode --- apps/api/src/routes/v1.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/apps/api/src/routes/v1.ts b/apps/api/src/routes/v1.ts index 781ed6af..c2a167e0 100644 --- a/apps/api/src/routes/v1.ts +++ b/apps/api/src/routes/v1.ts @@ -95,6 +95,10 @@ export function authMiddleware( return (req, res, next) => { (async () => { if (rateLimiterMode === RateLimiterMode.Extract && isAgentExtractModelValid((req.body as any)?.agent?.model)) { + logger.debug("Picking extract agent preview mode", { + body: req.body, + model: (req.body as any)?.agent?.model, + }); rateLimiterMode = RateLimiterMode.ExtractAgentPreview; }