mirror of
https://git.mirrors.martin98.com/https://github.com/mendableai/firecrawl
synced 2025-08-20 12:39:07 +08:00
further fixes
This commit is contained in:
parent
d7fef33224
commit
7426e54e6c
@ -65,7 +65,7 @@ describe("Queue Concurrency Integration", () => {
|
|||||||
fastMode: false,
|
fastMode: false,
|
||||||
blockAds: true,
|
blockAds: true,
|
||||||
maxAge: 0,
|
maxAge: 0,
|
||||||
dontStoreInCache: false,
|
storeInCache: true,
|
||||||
};
|
};
|
||||||
|
|
||||||
beforeEach(() => {
|
beforeEach(() => {
|
||||||
|
@ -97,8 +97,8 @@ describe("Scrape tests", () => {
|
|||||||
}, 30000);
|
}, 30000);
|
||||||
});
|
});
|
||||||
|
|
||||||
describe("Index", () => {
|
describe.only("Index", () => {
|
||||||
it.concurrent("caches properly", async () => {
|
it.only("caches properly", async () => {
|
||||||
const id = crypto.randomUUID();
|
const id = crypto.randomUUID();
|
||||||
const url = "https://firecrawl.dev/?testId=" + id;
|
const url = "https://firecrawl.dev/?testId=" + id;
|
||||||
|
|
||||||
|
@ -132,7 +132,7 @@ export async function performDeepResearch(options: DeepResearchServiceOptions) {
|
|||||||
fastMode: false,
|
fastMode: false,
|
||||||
blockAds: false,
|
blockAds: false,
|
||||||
maxAge: 0,
|
maxAge: 0,
|
||||||
dontStoreInCache: false,
|
storeInCache: true,
|
||||||
__experimental_cache: true,
|
__experimental_cache: true,
|
||||||
},
|
},
|
||||||
}, logger, costTracking, acuc?.flags ?? null);
|
}, logger, costTracking, acuc?.flags ?? null);
|
||||||
|
@ -191,6 +191,7 @@ export const engineOptions: {
|
|||||||
skipTlsVerification: true,
|
skipTlsVerification: true,
|
||||||
useFastMode: true,
|
useFastMode: true,
|
||||||
stealthProxy: false,
|
stealthProxy: false,
|
||||||
|
disableAdblock: false,
|
||||||
},
|
},
|
||||||
quality: 999, // index should always be tried second ? - MG
|
quality: 999, // index should always be tried second ? - MG
|
||||||
},
|
},
|
||||||
@ -244,6 +245,7 @@ export const engineOptions: {
|
|||||||
skipTlsVerification: true,
|
skipTlsVerification: true,
|
||||||
useFastMode: true,
|
useFastMode: true,
|
||||||
stealthProxy: false,
|
stealthProxy: false,
|
||||||
|
disableAdblock: false,
|
||||||
},
|
},
|
||||||
quality: -1,
|
quality: -1,
|
||||||
},
|
},
|
||||||
|
@ -6,7 +6,7 @@ import { EngineError, IndexMissError } from "../../error";
|
|||||||
import crypto from "crypto";
|
import crypto from "crypto";
|
||||||
|
|
||||||
export async function sendDocumentToIndex(meta: Meta, document: Document) {
|
export async function sendDocumentToIndex(meta: Meta, document: Document) {
|
||||||
const shouldCache = !meta.options.dontStoreInCache
|
const shouldCache = meta.options.storeInCache
|
||||||
&& meta.winnerEngine !== "cache"
|
&& meta.winnerEngine !== "cache"
|
||||||
&& meta.winnerEngine !== "index"
|
&& meta.winnerEngine !== "index"
|
||||||
&& meta.winnerEngine !== "index;documents"
|
&& meta.winnerEngine !== "index;documents"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user