What was chosen first? The adventure or the party?
If the adventure is chosen first, or predetermined like using an Adventure Path, then I think it's the player's responsibility to make a party that matches that adventure. If they refuse to, maybe throw in an NPC that can take some of the grunt work. Otherwise, let the chips fall where they may.
If the party is created first, I think it's the DM's responsibility to tailor her adventure towards the party. All rogues? Ocean's Eleven heist time. All mages? Probably intrigue and spell battles with rival wizards, a la Harry Potter.
If the adventure is chosen first, or predetermined like using an Adventure Path, then I think it's the player's responsibility to make a party that matches that adventure. If they refuse to, maybe throw in an NPC that can take some of the grunt work. Otherwise, let the chips fall where they may.
If the party is created first, I think it's the DM's responsibility to tailor her adventure towards the party. All rogues? Ocean's Eleven heist time. All mages? Probably intrigue and spell battles with rival wizards, a la Harry Potter.