Find answers from the community

Updated 4 weeks ago

The title in sentence case is: Removing user/assistant/tool messages

Isn't that kinda stupid^^ Shouldn't it only remove user/assistant/tool messages?
L
S
j
5 comments
That being said, yea it probably shouldn't 🀷 Added to my endless list of things to do lol but would apprecite a PR if its really bothering you
I also just saw that the AgentRunner is handling the system prompt separately - the issue shouldn't occur when using it. I will however consider creating a PR after my project is done πŸ™‚ Currently too much stress with finishing this application for a client.
Thanks for the input
the system prompt is not discarded. However in the past I remember seeing a bug in ChatMemoryBuffer (and some later fixes had it).When removing a message it needs to remove both assistant and tool messages, otherwise OpenAI will complain if the assistant role message required a tool, you delete the assistant message, and the tool message is orphan of it's assistant message.
Yea that bug should be fixed
Add a reply
Sign up and join the conversation on Discord