Closed angeloprado closed 3 months ago
Will update this when I have time.
May I ask what lines need to be changed? I've diff them and there seems to be no change: https://www.diffchecker.com/PWgCfXS3/
Hi @kdalanon , I am having issues posting the code here due to markdown. Let me prepare a quick diff for you
@kdalanon here we go https://www.diffchecker.com/lW1zuGOh/
The relevant changes for you would be lines 185 and 208. Feel free to incorporate the other suggestions
The relevant changes for you would be lines 185 and 208. Feel free to incorporate the other suggestions
Thank you. I am now incorporating your suggestions. Can you provide some texts where JSON escaping functionality fails, so that I can test if the revised code is working?
Might want to include ChatGPT_Prompt := RegExReplace(ChatGPT_Prompt, "\t", "") ; Remove horizontal tabs
to remove horizontal tabs. This is useful if you select text from a numbered list in Microsoft Word (my use case most of the time).
For certain text, JSON escaping functionality fails.
Please consider updating ProcessRequest as follows: