Skip to content

Commit

Permalink
Merge pull request #11 from devchat-ai/fix_commit_error
Browse files Browse the repository at this point in the history
Fix return statement in get_file_summaries function
  • Loading branch information
kagami-l authored Dec 20, 2023
2 parents 94c73fe + 98d5b93 commit 7169c57
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 7169c57

Please sign in to comment.