With code snippets, I've found that asking chatGPT to not include comments produces more code (could always ask to clarify). I also usually request a format/upper limit to my requests, like "describe in no more than 5 bullet points, 2-3 sentenc