mirror of
https://git.mirrors.martin98.com/https://github.com/mendableai/firecrawl
synced 2025-06-04 11:24:40 +08:00
feat(api/v1/authMiddleware): add log to debug extract agent preview mode
This commit is contained in:
parent
3e736f1e0d
commit
2e863da334
@ -95,6 +95,10 @@ export function authMiddleware(
|
|||||||
return (req, res, next) => {
|
return (req, res, next) => {
|
||||||
(async () => {
|
(async () => {
|
||||||
if (rateLimiterMode === RateLimiterMode.Extract && isAgentExtractModelValid((req.body as any)?.agent?.model)) {
|
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;
|
rateLimiterMode = RateLimiterMode.ExtractAgentPreview;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user