AutoGPT is the vision of accessible AI for everyone, to use and to build on. Our mission is to provide the tools, so that you can focus on what matters.
fix(integration): FirecrawlExtractBlock returns 400 Invalid JSON schema when output_schema is passed as a string (#10669)
Swifty650be0d1f7af
diff --git a/autogpt_platform/backend/backend/blocks/firecrawl/extract.py b/autogpt_platform/backend/backend/blocks/firecrawl/extract.pyold mode 100644new mode 100755index 96cda1866c..8f3b507bec--- a/autogpt_platform/backend/backend/blocks/firecrawl/extract.py+++ b/autogpt_platform/backend/backend/blocks/firecrawl/extract.py@@ -29,8 +29,8 @@ class FirecrawlExtractBlock(Block):prompt: str | None = SchemaField(description="The prompt to use for the crawl", default=None, advanced=False)- output_schema: str | None = SchemaField(- description="A more rigid structure if you already know the JSON layout.",+ output_schema: dict | None = SchemaField(+ description="A Json Schema describing the output structure if more rigid structure is desired.",default=None,)enable_web_search: bool = SchemaField(@@ -56,7 +56,6 @@ class FirecrawlExtractBlock(Block):app = FirecrawlApp(api_key=credentials.api_key.get_secret_value())- # Sync callextract_result = app.extract(urls=input_data.urls,prompt=input_data.prompt,