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)
|
.refine(fire1Refine, fire1RefineOpts)
|
||||||
.transform(extractTransform);
|
.transform(extractTransform);
|
||||||
|
|
||||||
export type ScrapeOptions = z.infer<typeof baseScrapeOptions> & {
|
export type BaseScrapeOptions = z.infer<typeof baseScrapeOptions>;
|
||||||
extract: z.infer<typeof extractOptionsWithAgent>,
|
|
||||||
jsonOptions: z.infer<typeof extractOptionsWithAgent>,
|
export type ScrapeOptions = BaseScrapeOptions & {
|
||||||
agent: {
|
extract?: z.infer<typeof extractOptionsWithAgent>,
|
||||||
|
jsonOptions?: z.infer<typeof extractOptionsWithAgent>,
|
||||||
|
agent?: {
|
||||||
model: string,
|
model: string,
|
||||||
prompt: string,
|
prompt: string,
|
||||||
sessionId?: string,
|
sessionId?: string,
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
import { z } from "zod";
|
import { z } from "zod";
|
||||||
import {
|
import {
|
||||||
AuthCreditUsageChunk,
|
AuthCreditUsageChunk,
|
||||||
|
BaseScrapeOptions,
|
||||||
ScrapeOptions,
|
ScrapeOptions,
|
||||||
Document as V1Document,
|
Document as V1Document,
|
||||||
webhookSchema,
|
webhookSchema,
|
||||||
@ -35,7 +36,7 @@ export interface WebScraperOptions {
|
|||||||
url: string;
|
url: string;
|
||||||
mode: Mode;
|
mode: Mode;
|
||||||
crawlerOptions?: any;
|
crawlerOptions?: any;
|
||||||
scrapeOptions: ScrapeOptions;
|
scrapeOptions: BaseScrapeOptions;
|
||||||
internalOptions?: InternalOptions;
|
internalOptions?: InternalOptions;
|
||||||
team_id: string;
|
team_id: string;
|
||||||
origin?: string;
|
origin?: string;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user