* Fix for proxy could not be cloned error
After several debugging, it was found that streamText initialisation called the structuredClone() function on messages. The problem is that messages is an object containing vue3 proxies, that can not be cloned. My proposed fix is to remove those proxies before passing messages to streamText
* Revert "Fix for proxy could not be cloned error"
This reverts commit 1575d305d5e5df3294991dbf7c8c25abfbfc783e.
* Fix for proxy clone error
rest.tool_results is also a proxy that was not removed properly