12 return prompt
13
14def get_gpt_prompt(diff):
15 """Get the prompt for GPT."""16
17 query = "# Write a commit message for the following diff. Use conventional commit style. Add bullet points in the body.\n"
18 query += "# Start diff\n"
There shouldn't be any blank lines after the function docstring. Remove the blank lines to fix this issue.
def example():
'''Bad docstring.'''
pass
def example():
'''Good docstring.'''
pass