What version are you using?
v0.5.1

What happened?
Using version 0.5.1 cause error when using /document and /refactor
Error: ERR_BAD_REQUEST received with status code 400.
Message: chat_history list is badly formatted or inlvalid
It work fine in version 0.4.x
Steps to reproduce
1. type `/document` or `/refactor`
2. Choose any code to promt
3. Click send
Supporting info to reproduce
No response
Relevant log output
No response
What version are you using?
v0.5.1

What happened?
Using version 0.5.1 cause error when using
/documentand/refactorIt work fine in version 0.4.x
Steps to reproduce
Supporting info to reproduce
No response
Relevant log output
No response