-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Importing from "langchain/llms/openai" is deprecated. #1469
Comments
@oliviermills have u been able to get it working using |
Not with the Vercel version of LangChainStream.. I implemented my own (https://dev.to/omills/vercel-ai-sdk-langchain-3edf) but this could be improved using AIStream I believe. You essentially need to pipe the right stream transformers. This uses the latest Vercel Ai sdk and latest Langchain. |
I've updated the langchain integration: https://sdk.vercel.ai/providers/adapters/langchain |
Description
In your example you use the old method for LangChain :
https://github.com/vercel/ai/tree/main/examples/next-langchain/app/api/stream-data-chain/route.ts
You should no long user
LLMChain
and update to usinginvoke()
and, herestream()
e.g.:
Code example
Additional context
Should update the
LangChainStream()
to work with:The text was updated successfully, but these errors were encountered: