I am using “gpt-4o-2024-05-13” for chat completions. However, I’m encountering a strange issue where when I ask a new question in a conversation, the model’s response includes information that seems meant for the previous question.
For example, I might ask:
- “What causes bloating in infants?”
The model might respond with a detailed explanation. Then, if I ask a new question like:
- “What causes gas in children?”
The problem: Instead of focusing solely on gas in children, the model’s response often starts by repeating the explanation about bloating in infants(the previous question) and then adds the information on gas. .
Is this a common problem with GPT-4o chat models? Is there a way to prevent these repetitive responses and have the model focus on the new question I’m asking?
I have given my project memory using langchain’s ConversationBufferWindowMemory
When I try this in the openai chat playground, the problem seems not to be there.