Hi there. I have a customer support gpt assistant integration, how can I remove gpt-4’s sources from the text, can’t get it to work in formatter, they apper as: 【1†source】,【2†source】,【3†source】...【15†source】need a formatter replace with blank (text), how to do it? Thank you.
Best answer
How can I remove ChatGPT-4’s sources from the text?
Best answer by Troy Tessalone
I wouldn’t wait on Zapier to implement a fix for this specific request.
Code to try (may need adjustments)
// Sample text with bracketed sources
const text = inputData.text;
// Replace all bracketed sources with nothing
const newText = text.replace(/.\d+†source./g, '');
output = [{text, newText}];
Reply
Rich Text Editor, editor1
Editor toolbars
Press ALT 0 for help
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.