This commit is contained in:
2026-07-12 10:48:01 +07:00
parent bd5022c8bc
commit c4eeb99aba
4 changed files with 34 additions and 11 deletions
+1 -7
View File
@@ -546,13 +546,7 @@ julia> clean_json_response(text)
"""
function clean_json_response(text::String)
removelist = ["{", "}", "```", "json", "\n"]
for i in removelist
while occursin(i, text)
text = replace(text, i => "")
end
end
text = '{' * text * '}'
return text
return '{' * removestring(text, removelist) * '}'
end