|
@@ -57,14 +57,14 @@ func (l *GptsGetApiMessageLogic) GptsGetApiMessage(req *types.GptMessageReq, tok
|
|
|
limit = strconv.Itoa(*req.Limit)
|
|
|
}
|
|
|
|
|
|
- user := fmt.Sprintf("%s:%d", userId, *req.AgentId)
|
|
|
+ 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
|
|
|
}
|
|
|
fmt.Printf("response=%v\n", response)
|
|
|
-
|
|
|
+
|
|
|
resp.Data.HasMore = response.HasMore
|
|
|
for _, v := range response.Data {
|
|
|
resp.Data.Data = append(resp.Data.Data, types.Message{
|