fix(ai-prompt-template): fix malformed JSON error message (#13096)
diff --git a/apisix/core/request.lua b/apisix/core/request.lua
index fef4bf1..3db323d 100644
--- a/apisix/core/request.lua
+++ b/apisix/core/request.lua
@@ -343,7 +343,7 @@
 
     local body_tab, err = json.decode(body)
     if not body_tab then
-        return nil, { message = "could not get parse JSON request body: " .. err }
+        return nil, { message = "could not parse JSON request body: " .. err }
     end
 
     return body_tab
diff --git a/apisix/plugins/ai-prompt-decorator.lua b/apisix/plugins/ai-prompt-decorator.lua
index f50c3c7..800846e 100644
--- a/apisix/plugins/ai-prompt-decorator.lua
+++ b/apisix/plugins/ai-prompt-decorator.lua
@@ -72,7 +72,7 @@
 
     local body_tab, err = core.json.decode(body)
     if not body_tab then
-        return nil, { message = "could not get parse JSON request body: " .. err }
+        return nil, { message = "could not parse JSON request body: " .. err }
     end
 
     return body_tab
diff --git a/apisix/plugins/ai-prompt-template.lua b/apisix/plugins/ai-prompt-template.lua
index b21826e..8ca0eaf 100644
--- a/apisix/plugins/ai-prompt-template.lua
+++ b/apisix/plugins/ai-prompt-template.lua
@@ -98,7 +98,7 @@
 
     local body_tab, err = core.json.decode(body)
     if not body_tab then
-        return nil, { message = "could not get parse JSON request body: ", err }
+        return nil, { message = "could not parse JSON request body: " .. err }
     end
 
     return body_tab
diff --git a/t/plugin/ai-proxy-multi.t b/t/plugin/ai-proxy-multi.t
index faacdec..a9ba197 100644
--- a/t/plugin/ai-proxy-multi.t
+++ b/t/plugin/ai-proxy-multi.t
@@ -345,7 +345,7 @@
 {}"messages": [ { "role": "system", "cont
 --- error_code: 400
 --- response_body
-{"message":"could not get parse JSON request body: Expected the end but found T_STRING at character 3"}
+{"message":"could not parse JSON request body: Expected the end but found T_STRING at character 3"}
 
 
 
diff --git a/t/plugin/ai-proxy.t b/t/plugin/ai-proxy.t
index 4527a74..bf95ba3 100644
--- a/t/plugin/ai-proxy.t
+++ b/t/plugin/ai-proxy.t
@@ -459,7 +459,7 @@
 {}"messages": [ { "role": "system", "cont
 --- error_code: 400
 --- response_body
-{"message":"could not get parse JSON request body: Expected the end but found T_STRING at character 3"}
+{"message":"could not parse JSON request body: Expected the end but found T_STRING at character 3"}