feat(api/v1/authMiddleware): add log to debug extract agent preview mode

This commit is contained in:
Gergő Móricz 2025-05-23 09:35:29 +02:00
parent 3e736f1e0d
commit 2e863da334

View File

@ -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;
}