I updated the langchain-community library and everything is working fine now. You can fix the issue by running the following command: pip install --upgrade langchain-community
langchain-community
pip install --upgrade langchain-community