From 2d0d5ac39262ed08ba5dfe3788fd6dbbc7105295 Mon Sep 17 00:00:00 2001 From: Eric Ciarla Date: Tue, 2 Jul 2024 14:05:42 -0400 Subject: [PATCH] Update for llm-extraction-from-raw-html --- apps/api/openapi.json | 4 ++-- apps/js-sdk/firecrawl/types/index.d.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/api/openapi.json b/apps/api/openapi.json index a466e50b..bb271976 100644 --- a/apps/api/openapi.json +++ b/apps/api/openapi.json @@ -92,8 +92,8 @@ "properties": { "mode": { "type": "string", - "enum": ["llm-extraction"], - "description": "The extraction mode to use, currently supports 'llm-extraction'" + "enum": ["llm-extraction", "llm-extraction-from-raw-html"], + "description": "The extraction mode to use. llm-extraction: Extracts information from the cleaned and parsed content. llm-extraction-from-raw-html: Extracts information directly from the raw HTML." }, "extractionPrompt": { "type": "string", diff --git a/apps/js-sdk/firecrawl/types/index.d.ts b/apps/js-sdk/firecrawl/types/index.d.ts index 9e6f18cd..91a58043 100644 --- a/apps/js-sdk/firecrawl/types/index.d.ts +++ b/apps/js-sdk/firecrawl/types/index.d.ts @@ -107,7 +107,7 @@ export interface Params { [key: string]: any; extractorOptions?: { extractionSchema: z.ZodSchema | any; - mode?: "llm-extraction"; + mode?: "llm-extraction" | "llm-extraction-from-raw-html"; extractionPrompt?: string; }; }