Pārlūkot izejas kodu

Merge branch 'yhg_241210_dify' into debug

jimmyyem 3 mēneši atpakaļ
vecāks
revīzija
ef5730ed54

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

@@ -64,12 +64,11 @@ 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(employeeItem.APIBase, employeeItem.APIKey, user, *req.ConversationId, firstId, limit)
 	if err != nil {
+		fmt.Printf("get-dify-message error=%v  \n", err)
 		return nil, err
 	}
-	//fmt.Printf("response=%v\n", response)
 
 	resp.Data.HasMore = response.HasMore
 	for _, v := range response.Data {

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

@@ -62,12 +62,11 @@ 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(employeeItem.APIBase, employeeItem.APIKey, user, lastId, limit)
 	if err != nil {
+		fmt.Printf("get-dify-message error=%v  \n", err)
 		return nil, err
 	}
-	//fmt.Printf("response=%v\n", response)
 
 	resp.Data.HasMore = response.HasMore
 	for _, v := range response.Data {