AdaptRec: A Self-Adaptive Framework for Sequential Recommendations with Large Language Models