Skip to content

Commit 2f47fa4

Browse files
committed
fix: openapi message list limit default
1 parent a9b87c1 commit 2f47fa4

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

backend/application/conversation/openapi_message.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,10 @@ func (m *OpenapiMessageApplication) GetApiMessageList(ctx context.Context, mr *m
5353
return nil, errorx.New(errno.ErrConversationPermissionCode, errorx.KV("msg", "permission denied"))
5454
}
5555

56+
if mr.Limit == nil {
57+
mr.Limit = ptr.Of(int64(50))
58+
}
59+
5660
msgListMeta := &entity.ListMeta{
5761
ConversationID: currentConversation.ID,
5862
AgentID: currentConversation.AgentID,

0 commit comments

Comments
 (0)