[update][abaoxomtieu]: update grammar prompt return word
Browse files
apis/V1/prompts/prompt.py
CHANGED
|
@@ -113,9 +113,8 @@ def grammar_check_prompt(sentence):
|
|
| 113 |
# System instructions:
|
| 114 |
0. No yapping
|
| 115 |
1. Read the text carefully.
|
| 116 |
-
2.
|
| 117 |
-
3
|
| 118 |
-
4. If there are no mistakes, return the original text.
|
| 119 |
Examples:
|
| 120 |
|
| 121 |
Example 1:
|
|
@@ -135,8 +134,8 @@ def grammar_check_prompt(sentence):
|
|
| 135 |
|
| 136 |
You must return in JSON format, field is mandatory:
|
| 137 |
{{
|
| 138 |
-
"incorrect": [list of
|
| 139 |
-
"correct": [list of correct words
|
| 140 |
"corrected_sentence": corrected sentence
|
| 141 |
}}
|
| 142 |
"""
|
|
|
|
| 113 |
# System instructions:
|
| 114 |
0. No yapping
|
| 115 |
1. Read the text carefully.
|
| 116 |
+
2. If there are any grammar mistakes, correct them. Each mistake should be corrected individually.
|
| 117 |
+
3 if there are no mistakes, return the original text.
|
|
|
|
| 118 |
Examples:
|
| 119 |
|
| 120 |
Example 1:
|
|
|
|
| 134 |
|
| 135 |
You must return in JSON format, field is mandatory:
|
| 136 |
{{
|
| 137 |
+
"incorrect": [list of misspelled words, it can be repeated, if there are no mistakes, return an empty list],
|
| 138 |
+
"correct": [list of correct words corrected from incorrect word, it can be repeated in the same order as the incorrect list, if there are no mistakes, return an empty list],
|
| 139 |
"corrected_sentence": corrected sentence
|
| 140 |
}}
|
| 141 |
"""
|