|
@@ -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 {
|