---
title: "Comment by Ekins Kuuzie on \"Building an Interactive Chatbot with Langchain, ChatGPT, Pinecone, and Streamlit\" | Hashnode"
description: "ValueError: variable history should be a list of base messages, got I get this error when I try to run the code . Anyone else getting this error ? How do I reso"
url: "https://hashnode.com/posts/building-an-interactive-chatbot-with-langchain-chatgpt-pinecone-and-streamlit/646a39eae56ee64c3d800e77/comment/656bc54c03318819fa39c768"
---

[Discussion](https://hashnode.com/posts/building-an-interactive-chatbot-with-langchain-chatgpt-pinecone-and-streamlit/646a39eae56ee64c3d800e77)

Comment [Building an Interactive Chatbot with Langchain, ChatGPT, Pinecone, and Streamlit](https://hashnode.com/posts/building-an-interactive-chatbot-with-langchain-chatgpt-pinecone-and-streamlit/646a39eae56ee64c3d800e77)

[Ekins Kuuzie](https://hashnode.com/@ZeusMD)

[Dec 3, 2023](https://hashnode.com/posts/building-an-interactive-chatbot-with-langchain-chatgpt-pinecone-and-streamlit/646a39eae56ee64c3d800e77/comment/656bc54c03318819fa39c768)

ValueError: variable history should be a list of base messages, got

I get this error when I try to run the code . Anyone else getting this error ? How do I resolve it ?

[farhan oc](https://hashnode.com/@farhaneng)

[Dec 28, 2023](https://hashnode.com/posts/building-an-interactive-chatbot-with-langchain-chatgpt-pinecone-and-streamlit/646a39eae56ee64c3d800e77/comment/656bc54c03318819fa39c768#reply-658d8291d5ca6e025266aa18)

I got same error, working on it, if i find a solution share with you :)

[farhan oc](https://hashnode.com/@farhaneng)

[Dec 29, 2023](https://hashnode.com/posts/building-an-interactive-chatbot-with-langchain-chatgpt-pinecone-and-streamlit/646a39eae56ee64c3d800e77/comment/656bc54c03318819fa39c768#reply-658eb5dc1692adb30db64d49)

conversation\_summary = ConversationChain( llm=llm, memory=ConversationBufferWindowMemory(k=10, return\_messages=True), prompt=prompt\_template, verbose=True )

update this line, it resolved my issue.
