Skip to content

Commit 1087d29

Browse files
authored
Tweak prompt
1 parent db2f11e commit 1087d29

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

deepseek.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ def shorten(text, key, max_len):
88
payload = { "messages": [
99
{
1010
"role": "user",
11-
"content": f"Please shorten the following text to less than {max_len} characters, and only return the shortened text, do not attempt to interpret it:\n{text}"
11+
"content": f"Shorten the following text to {max_len} characters. Return only the shortened text without adding, interpreting, or modifying the meaning. Do not include explanations or notes. Text:\n{text}"
1212
}
1313
] }
1414
headers = {

0 commit comments

Comments
 (0)