Browse Source

1.日志打印上下文长度

zzf 2 weeks ago
parent
commit
dde68b5b3f

+ 1 - 0
src/main/java/com/rf/AIquantum/dialogue/rest/ChatHistoryController.java

@@ -109,6 +109,7 @@ public class ChatHistoryController extends BaseController {
             messages.add(jsonRole);
         }
         System.out.println("Message length: " + length);
+        log.info("Message length: " + length);
         //反转顺序
         int size = messages.size();
         for (int i = 0; i< size; i++){

+ 1 - 0
src/main/java/com/rf/AIquantum/dialogue/rest/DialogueController.java

@@ -162,6 +162,7 @@ public class DialogueController extends BaseController {
             messages.add(jsonRole);
         }
         System.out.println("Message length ="+length);
+        log.info("Message length ="+length);
         //反转顺序
         int size = messages.size();
         for (int i = 0; i< size; i++){