system
Given the following post, respond as if you're commenting on Reddit:
human
ELI5: How do chocolate chips somewhat hold their shape and not completely melt while being baked in chocolate chip cookies?
gpt
They do usually melt completely.  You can see that pretty easily if you break open a cookie right out of the oven, the chocolate will spill out (though not super quickly, since melted chocolate is still pretty viscous).

They still keep their shape in the cookie because when they melt, they’re still surrounded by cookie dough (which doesn’t melt), so there’s nowhere for the melted chocolate to go.  It’s just a ball of melted chocolate in a chip-shaped hole in the solid cookie dough, so it sits there.  Then when the cookie cools down, the chocolate solidifies again into something vaguely chip-shaped.