mirror of
https://git.mirrors.martin98.com/https://github.com/mendableai/firecrawl
synced 2025-08-12 19:39:16 +08:00
FIX MORE
This commit is contained in:
parent
9400b1423a
commit
0ee9603945
@ -403,10 +403,12 @@ export const scrapeOptions = baseScrapeOptions
|
||||
.refine(fire1Refine, fire1RefineOpts)
|
||||
.transform(extractTransform);
|
||||
|
||||
export type ScrapeOptions = z.infer<typeof baseScrapeOptions> & {
|
||||
extract: z.infer<typeof extractOptionsWithAgent>,
|
||||
jsonOptions: z.infer<typeof extractOptionsWithAgent>,
|
||||
agent: {
|
||||
export type BaseScrapeOptions = z.infer<typeof baseScrapeOptions>;
|
||||
|
||||
export type ScrapeOptions = BaseScrapeOptions & {
|
||||
extract?: z.infer<typeof extractOptionsWithAgent>,
|
||||
jsonOptions?: z.infer<typeof extractOptionsWithAgent>,
|
||||
agent?: {
|
||||
model: string,
|
||||
prompt: string,
|
||||
sessionId?: string,
|
||||
|
@ -1,6 +1,7 @@
|
||||
import { z } from "zod";
|
||||
import {
|
||||
AuthCreditUsageChunk,
|
||||
BaseScrapeOptions,
|
||||
ScrapeOptions,
|
||||
Document as V1Document,
|
||||
webhookSchema,
|
||||
@ -35,7 +36,7 @@ export interface WebScraperOptions {
|
||||
url: string;
|
||||
mode: Mode;
|
||||
crawlerOptions?: any;
|
||||
scrapeOptions: ScrapeOptions;
|
||||
scrapeOptions: BaseScrapeOptions;
|
||||
internalOptions?: InternalOptions;
|
||||
team_id: string;
|
||||
origin?: string;
|
||||
|
Loading…
x
Reference in New Issue
Block a user