Skip to content
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

Update calls of arun to ainvoke for langchain chat models #45

Open
tanmaygupta9 opened this issue Apr 3, 2024 · 1 comment
Open

Update calls of arun to ainvoke for langchain chat models #45

tanmaygupta9 opened this issue Apr 3, 2024 · 1 comment
Assignees
Labels
python Pull requests that update Python code

Comments

@tanmaygupta9
Copy link

tanmaygupta9 commented Apr 3, 2024

Using the arun methods to call a chat model -- which is what we currently do -- gives the following warning: LangChainDeprecationWarning: The function arun was deprecated in LangChain 0.1.0 and will be removed in 0.2.0. Use ainvoke instead.

arun will be removed in langchain==0.2.0 (currently at 0.1.14) so we should update this sooner rather than later

@tanmaygupta9 tanmaygupta9 added the python Pull requests that update Python code label Apr 3, 2024
@tanmaygupta9 tanmaygupta9 self-assigned this Apr 3, 2024
@tanmaygupta9
Copy link
Author

  • don't arun an AgentExecutor, instead update calls to ainvoke.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
python Pull requests that update Python code
Projects
None yet
Development

No branches or pull requests

1 participant