thread.`generateText/streamText` returns a validator error
OR
These functions (even with just
{message} and not the whole prompt) are giving me the errors in the screenshots, ONLY if I actually save the message in the database. If I pass saveMessages: "none" and/or saveStreamDeltas: false the problem goes away (but streaming doesn't work and the whole flow is generally slower).Can you help me understand what the problem is?
(I can give you more context if needed!)


