diff --git a/Service/SmartHandleService.cs b/Service/SmartHandleService.cs index d1513ae..437dfe4 100644 --- a/Service/SmartHandleService.cs +++ b/Service/SmartHandleService.cs @@ -322,11 +322,14 @@ public class SmartHandleService( logger.LogInformation("AI生成的SQL: {Sql}", sqlText); chunkAction( - $""" -
-            生成的SQL查询语句:
-            {System.Net.WebUtility.HtmlEncode(sqlText)}
-            """
+                JsonSerializer.Serialize(new
+                {
+                    content = $"""
+                    
+                    {System.Net.WebUtility.HtmlEncode(sqlText)}
+                    
+ """ + }) ); // 第二步:执行动态SQL查询