Skip to content

Commit 584d48d

Browse files
reycnyetone
andauthored
optimize: improved English prompt (#2)
* Improved prompt - Specify dimensions - List changes and reasons. * Update main.js --------- Co-authored-by: yetone <[email protected]>
1 parent cc14752 commit 584d48d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ function translate(query, completion) {
1212
"Content-Type": "application/json",
1313
Authorization: `Bearer ${api_key}`,
1414
};
15-
let prompt = "please polish this sentence";
15+
let prompt = "Revise the following sentence to make it more clear, concise, and coherent. Please note that you need to list the changes and briefly explain why.";
1616
switch (query.detectFrom) {
1717
case "zh-Hant":
1818
case "zh-Hans":

0 commit comments

Comments
 (0)