Revert "fix: escape original_content" (#8)
This reverts commit 1634abb9cd29a3d8265fd440e14fe0f56d92d6a9.
This commit is contained in:
parent
2951217a68
commit
036ce7e77e
@ -382,7 +382,6 @@ local function call_openai_api_stream(question, code_lang, code_content, on_chun
|
||||
end
|
||||
|
||||
local function call_ai_api_stream(question, code_lang, code_content, on_chunk, on_complete)
|
||||
code_content = utils.escape(code_content)
|
||||
if M.config.provider == "openai" or M.config.provider == "azure" then
|
||||
call_openai_api_stream(question, code_lang, code_content, on_chunk, on_complete)
|
||||
elseif M.config.provider == "claude" then
|
||||
|
@ -4,8 +4,4 @@ function M.trim_suffix(str, suffix)
|
||||
return string.gsub(str, suffix .. "$", "")
|
||||
end
|
||||
|
||||
function M.escape(str)
|
||||
return string.gsub(str, "([%(%)%.%%%+%-%*%?%[%^%$%]])", "%%%1")
|
||||
end
|
||||
|
||||
return M
|
||||
|
Loading…
x
Reference in New Issue
Block a user