Closed ARKA1112 closed 9 months ago
I'm experiencing this too in RetrievalQA.from_chain_type, specifically with chain_type = 'refine'. It was working with no issues in previous 0.0.206 version
Google updated the ChatModelBase Class. It no longer has history attribute. Instead, it has an attribute called message_history. To get the code working, you can downgrade google-cloud-aiplatform to 1.26.0 until this gets updated in Langchain. I believe you are using 1.26.1. https://github.com/googleapis/python-aiplatform/commit/bf0e20b497675125e0bc5abc10455b06f7a0c019 @HassanOuda
Yes, I am using google-cloud-aiplatform version 1.26.1. And downgrading to 1.26.0 makes the code work as expected. Thanks for your help.
Hi, @ARKA1112! I'm Dosu, and I'm here to help the LangChain team manage their backlog. I wanted to let you know that we are marking this issue as stale.
From what I understand, you reported an issue regarding the 'ChatSession' object not having the attribute '_history', which resulted in an AttributeError. Another user, jamontol, also experienced the same issue. Sheldenburg suggested downgrading the google-cloud-aiplatform package to version 1.26.0, as the attribute name has changed to 'message_history'. You confirmed that downgrading to 1.26.0 resolved the issue.
Before we close this issue, we wanted to check if it is still relevant to the latest version of the LangChain repository. If it is, please let us know by commenting on this issue. Otherwise, feel free to close the issue yourself, or it will be automatically closed in 7 days.
Thank you for your contribution to the LangChain repository!
System Info
Who can help?
No response
Information
Related Components
Reproduction
Input
Response
Expected behavior
It is expected to return an object similar to this