且笑风尘不敢造次 (@showyoubetter)ahk怎么实现openAi格式的流式调用 中发帖

以前没用cursor写出来, claude4出来了也没写出来 😂, 只能请教大佬了 
正常的同步请求:
FileEncoding, UTF-8
#Include %A_ScriptDir%\JSON.ahk

setSendData(selectedModel, sysPrompt, userPrompt, isStream := false){
; theSysPrompt := RegExReplace(sysPrompt, "\r\n|\n|\r", "\n")
; 转义特殊字符
theUserPrompt := RegExReplace(theUserPrompt, "\\", "\\\\") ; 转义反斜杠, 必须放在开头
theUserPrompt := RegExReplace(userPrompt, "\r\n|\n|\r", "\...