I'm receiving a query response similar to
text:"\n\nChris: "Why buy candy when you can just steal it?""
How do I I use a transformer to parse out the explicit text Chris:
I'm looking for the result to just be:
"Why buy candy when you can just steal it?"
Should something like this work?
const data = {{query1.data}}
data.choices['0'].text = data.choices['0'].text.replace(/Chris:/g, '')
return data