Skip to content
This repository was archived by the owner on Apr 16, 2025. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions gpt-commit.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,10 @@ async def complete(prompt):


async def summarize_diff(diff):
assert diff
return await complete(DIFF_PROMPT + "\n\n" + diff + "\n\n")
if diff is not None:
return await complete(DIFF_PROMPT + "\n\n" + diff + "\n\n")
else:
return ""


async def summarize_summaries(summaries):
Expand Down