Skip to content

Commit 4c7e0ad

Browse files
committed
Update code
Changes were made to the repository. User message: N/A
1 parent 5516d09 commit 4c7e0ad

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

penify_hook/llm_client.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,6 @@ def generate_commit_summary(self, diff: str, message: str, generate_description:
105105
106106
Format your response as valid JSON with 'title' {"and 'description'" if generate_description else ''} keys.
107107
"""
108-
print(prompt)
109108

110109
try:
111110
# Call the LLM using litellm
@@ -141,6 +140,9 @@ def generate_commit_summary(self, diff: str, message: str, generate_description:
141140
"description": description
142141
}
143142

143+
if not generate_description:
144+
# If description is missing and user requested it, add a placeholder
145+
del result['description']
144146
return result
145147

146148
except Exception as e:

0 commit comments

Comments
 (0)