Skip to content

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

@tanmaygupta9

Description

@tanmaygupta9

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

Metadata

Metadata

Assignees

Labels

pythonPull requests that update Python code

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions