Skip to content

Commit 0c107f4

Browse files
clarify summary prompt
1 parent 08874e2 commit 0c107f4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gmt/views/commands.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ def summarize_news():
249249
try_count = 0
250250
while try_count < 3:
251251
try:
252-
prompt = f"Summarize the following text, clean it up and remove spam, keep it between 200 and 300 characters: {description}"
252+
prompt = f"Summarize the following text, clean it up and remove spam, keep it between 200 and 300 characters. Return only the summary text, with no introduction, preamble, or closing statement: {description}"
253253
summary = query(prompt)
254254
print(f"Generated summary: {len(summary)} chars")
255255

0 commit comments

Comments
 (0)