Skip to content

Commit e08a4b7

Browse files
authored
fix: openapi message list limit default (coze-dev#803)
1 parent e5dab17 commit e08a4b7

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)