-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
UnstructuredLoader: add timeout option #1869
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
875715c
to
96ea42d
Compare
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.
Thanks for submitting this - would really like to avoid adding an additional dependency. Can we do this in base fetch?
langchain/package.json
Outdated
@@ -791,6 +791,7 @@ | |||
"openapi-types": "^12.1.3", | |||
"p-queue": "^6.6.2", | |||
"p-retry": "4", | |||
"undici": "^5.22.1", |
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.
Can we do this without the additional dependency?
Not that I'm aware of. Since Node18 node See this discussion for reference. |
Unfortunately in this case we need to support more than Nodr (Edge functions, CF Workers, Deno). |
Totally missed the portability concerns... I'll scout about it and report back. |
fd62bce
to
40215d3
Compare
Fixes #1856
Adds a per-request timeout option to the
UnstructuredLoader
, allowing a timeout different from 5 minutes to be passed to the constructor.