Преглед на файлове

Merge branch 'yhg_241210_dify' into debug

jimmyyem преди 5 месеца
родител
ревизия
366be71123
променени са 2 файла, в които са добавени 2 реда и са изтрити 0 реда
  1. 1 0
      internal/logic/chatrecords/gpts_get_api_message_logic.go
  2. 1 0
      internal/logic/chatrecords/gpts_get_api_session_logic.go

+ 1 - 0
internal/logic/chatrecords/gpts_get_api_message_logic.go

@@ -58,6 +58,7 @@ func (l *GptsGetApiMessageLogic) GptsGetApiMessage(req *types.GptMessageReq, tok
 	}
 
 	user := fmt.Sprintf("%s:%d", userId, *req.AgentId)
+	fmt.Printf("user=%v ConversationId=%v firstId=%v, limit=%v\n", user, *req.ConversationId, firstId, limit)
 	response, err := dify.GetChatHistory(user, *req.ConversationId, firstId, limit)
 	if err != nil {
 		return nil, err

+ 1 - 0
internal/logic/chatrecords/gpts_get_api_session_logic.go

@@ -56,6 +56,7 @@ func (l *GptsGetApiSessionLogic) GptsGetApiSession(req *types.GptsSessionReq, to
 	}
 
 	user := fmt.Sprintf("%s:%d", userId, *req.AgentId)
+	fmt.Printf("user=%v lastId=%v, limit=%v\n", user, lastId, limit)
 	response, err := dify.GetSessionList(user, lastId, limit)
 	if err != nil {
 		return nil, err