-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
community[patch]: Support for specifying api url for firecrawl document loader #6488
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
@@ -56,6 +62,7 @@ export class FireCrawlLoader extends BaseDocumentLoader { | |||
super(); | |||
const { | |||
apiKey = getEnvironmentVariable("FIRECRAWL_API_KEY"), | |||
apiUrl = "https://api.firecrawl.dev", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's just leave this unset by default? Then we can only need to pass it to the underlying SDK if it is overridden?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's remove the default value so that if the official SDK changes no update will be needed here
Thank you! |
Fixes #6489
JS Version of langchain-ai/langchain/pull/24747
This PR would provide support for users to use self-hosted instances of Firecrawl.
The FirecrawlApp class already has support to pass this argument. See https://github.com/mendableai/firecrawl/blob/main/apps/js-sdk/firecrawl/src/index.ts#L9