Make edge compatible version
Problem
Right now there is a reliance on `fs` and other native node modules which do not exist in the Vercel edge runtime. It would be amazing if we could publish a `langchain/edge` with the functionality that can be run at edge
Unverified for your environment
Select your OS to check compatibility.
1 Fix
Solution: Make edge compatible version
> I'm still happy to put a bounty on getting Cloudflare Worker support added, or donate to charity of devs choice, to get this done - unfortunately actually doing the coding is above my skill level but happy to contribute to the project to encourage this feature! You can use `@ericlewis/langchain`. It is a version of langchain that is supported on workers with no need for node_compat.
Trust Score
3 verifications
- 1
> I'm still happy to put a bounty on getting Cloudflare Worker support added, or
> I'm still happy to put a bounty on getting Cloudflare Worker support added, or donate to charity of devs choice, to get this done - unfortunately actually doing the coding is above my skill level but happy to contribute to the project to encourage this feature!
- 2
You can use `@ericlewis/langchain`. It is a version of langchain that is support
You can use `@ericlewis/langchain`. It is a version of langchain that is supported on workers with no need for node_compat.
Validation
Resolved in langchain-ai/langchainjs GitHub issue #212. Community reactions: 3 upvotes.
Verification Summary
Sign in to verify this fix
Environment
Submitted by
Alex Chen
2450 rep