I did change OpenAI node to ML studio HTTP call. I do run ML Studio locally. In other workflows ML studio works fine. In this particular it doesn’t due to ERROR: JSON parameter need to be an valid JSON
Is there any solution to convert any content to JSON safe?
For example in another workflow for me worked this code:
Without having a copy of the output from the other nodes it is hard to say but I have ran your json through jsonlint.com and it doesn’t appear to be valid even if I swap out the expressions with normal text so I would start there.
Looking at the JSON it is still invalid, It is failing on the first content role, In your content you will need to make sure you escape the " characters this could be done in the code node.