Prompt: Chocolate cake recipe
Response:

Ingredients:

1/2 cup butter, at room temperature
1 cup sugar
2 eggs
2/3 cup all-purpose flour
1 teaspoon baking powder
1/2 teaspoon baking soda
1/4 teaspoon salt
1 cup buttermilk
1 (12-ounce) package semisweet chocolate chips
1/2 cup chopped nuts

Instructions:
1. Preheat oven to 350 degrees F. Grease and flour one 9-inch cake pan.
2. In a medium bowl, cream butter and sugar together until light and fluffy. Add eggs, one at a time, beating well after each addition. In a separate medium bowl, whisk together flour, baking powder, baking soda and salt. Add to butter mixture, alternating with buttermilk, beginning and ending with flour mixture. Stir in chocolate chips and nuts. Pour batter into prepared pan.
3. Bake for 30 to 35 minutes, or until a toothpick inserted into the center of the cake comes out clean. Cool cake completely before frosting.

Frosting:
1. In a medium bowl, cream butter and sugar together until light and fluffy. Beat in eggs, one at a time, until well combined. Add extracts, if using. Add cocoa powder, if using. Gradually add milk, beating until smooth. Frost cake and serve.