I’m using Gemini plus the ZEP database, and getting this error System message must be first
It worked with some messages and now it’s giving this error
I know exactly what’s causing it. I just don’t know how to fix it.
The problem is that in node AI Agent you have your own ‘System message’ and after several messages ZEP makes a summary of your previous messages and sends it not as a dialogue history but as another ‘System message’. Since there can only be 1 System message and it must always be the first one. In your case there are 2 of them. That is why there is an error. I don’t know how to fix it. If someone can help me, I will be grateful.