Erik Skogetun
Results
comments of
Erik Skogetun
For our use-case, we want to persist each message after each step is finished (with v4, we save to DB in onStepFinish), so some function to convert from Model ->...
I vibe-coded a 'modelMessagesToUiMessage' that might help someone temporarily. Have barely looked at the code, but seems to hold up for our use case at least. ``` export function modelMessagesToUiMessage(...