Skip to content

Commit

Permalink
Fix return statement in get_file_summaries function
Browse files Browse the repository at this point in the history
  • Loading branch information
yangbobo2021 committed Dec 20, 2023
1 parent 94c73fe commit 98d5b93
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion commit/commit.py
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ def get_file_summaries(modified_files, staged_files, user_input):

if len(total_diff_decoded) > 15000:
print("Current diff length:", len(total_diff_decoded), flush=True)
return {}, []
return {}

# 在prompt中明确处置AI模型的输出格式需求
normpath_summaries = gpt_file_summary(total_diff_decoded, modified_files, user_input)
Expand Down

0 comments on commit 98d5b93

Please sign in to comment.