langchainjs
langchainjs copied to clipboard
community[minor]: feat: Layerup Security integration
Description: adds integration with Layerup Security. Docs can be found here. Integrates directly with our TypeScript SDK.
Note: all methods for our product require a paid API key, so I only included 1 test which checks for an invalid API key response. I have tested extensively locally.
Twitter handle: @layerup_
The latest updates on your projects. Learn more about Vercel for Git ↗︎
Name | Status | Preview | Comments | Updated (UTC) |
---|---|---|---|---|
langchainjs-api-refs | ✅ Ready (Inspect) | Visit Preview | 💬 Add feedback | May 21, 2024 0:23am |
langchainjs-docs | ✅ Ready (Inspect) | Visit Preview | May 21, 2024 0:23am |
Thanks, see comments and don't forget to run yarn format
+ yarn lint
Thanks for your patience! Small typing issue, I would fix but I can't make edits here.
Seems like you need to run yarn
again to update the lockfile
I am happy to polish this up if you give me push access to the branch
Seems like you need to run
yarn
again to update the lockfileI am happy to polish this up if you give me push access to the branch
I tried this but it didn't do anything. Added you to the repo!
I think there's something wrong with the SDK types:
Error: @langchain/community:build: ../../node_modules/@layerup/layerup-security/types.ts(1,44): error TS2307: Cannot find module 'openai/resources' or its corresponding type declarations.
@jacoblee93 Looks like some parts of the repo had the @layerup/layerup-security
SDK on version 1.5.6, which had a types import bug for OpenAI. I just bumped the remaining imports from 1.5.6 to 1.5.9 which should fix the issue.
Still failing with:
Cannot find module 'openai/resources' or its corresponding type declarations.
You should also run yarn
to update the lockfile if you update an SDK version
Thank you!