-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Unstructured in memory loader #5726
Conversation
sync main
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
@@ -29,6 +30,34 @@ test.skip("Test Unstructured base loader", async () => { | |||
} |
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.
Hey team, just wanted to flag this PR for review as it includes changes that access an environment variable via process.env
to obtain the API key for the options object. Please take a look and ensure everything is handled securely. Thanks!
@@ -167,20 +179,28 @@ export class UnstructuredLoader extends BaseDocumentLoader { | |||
private maxCharacters?: number; |
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.
Hey there! I've reviewed the code and noticed that the recent change in the unstructured.ts
file accesses an environment variable using getEnvironmentVariable
. I've flagged this for your review to ensure it aligns with the intended functionality. Let me know if you need further assistance!
@@ -29,6 +30,34 @@ test.skip("Test Unstructured base loader", async () => { | |||
} |
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.
Hey team, I've flagged this PR for your review as it adds code that explicitly accesses an environment variable via process.env
. Please take a look to ensure that the handling of environment variables aligns with best practices and security guidelines.
great I think you can close my PR, thanks for help with linting🔥 |
Thank you! |
Builds off of #5581 with lint and docs
CC @andrewdoro