To make this recipe gluten-free, substitute the all-purpose flour with a gluten-free 1:1 baking flour blend that includes xanthan gum or guar gum. Ensure that the baking soda and vanilla extract you use are certified gluten-free. Additionally, verify that your chocolate chips and nuts are processed in a gluten-free facility if you are sensitive to cross-contamination.