Skip to content

Commit

Permalink
Add optional API URL parameter to Firecrawl Tools
Browse files Browse the repository at this point in the history
  • Loading branch information
anuragts committed Feb 12, 2025
1 parent 551aadb commit 174c06e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion libs/agno/agno/tools/firecrawl.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ def __init__(
limit: int = 10,
scrape: bool = True,
crawl: bool = False,
api_url: Optional[str] = "https://api.firecrawl.dev",
):
super().__init__(name="firecrawl_tools")

Expand All @@ -28,7 +29,7 @@ def __init__(

self.formats: Optional[List[str]] = formats
self.limit: int = limit
self.app: FirecrawlApp = FirecrawlApp(api_key=self.api_key)
self.app: FirecrawlApp = FirecrawlApp(api_key=self.api_key, api_url=api_url)

# Start with scrape by default. But if crawl is set, then set scrape to False.
if crawl:
Expand Down

0 comments on commit 174c06e

Please sign in to comment.