Skip to content

Commit 0078eaa

Browse files
committed
- improve grammar check instructions
1 parent 588efee commit 0078eaa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/grammar_check.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ <h3 class="text-lg font-semibold text-gray-900 dark:text-gray-100 flex items-cen
251251
}
252252
button.disabled = true;
253253
button.innerHTML = '<svg class="animate-spin h-4 w-4 mr-2" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24"><circle class="opacity-25" cx="12" cy="12" r="10" stroke="currentColor" stroke-width="4"></circle><path class="opacity-75" fill="currentColor" d="M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"></path></svg>Checking';
254-
const botMessage = `I am a grammar checking API. I analyze text for grammar errors with a focus on ${mode} writing. I always respond in this JSON format:{"errors":[{"type":"grammar","text":"original text","suggestion":"suggested correction","description":"error description"}]}`;
254+
const botMessage = `I am a grammar checking API. I analyze text for grammar errors with a focus on ${mode} writing. I always respond in this JSON format:{"errors":[{"text":"original text","suggestion":"suggested correction","description":"error description"}]}\nRules:\n* Max 7 words per error\n*I split longer corrections into smaller chunks`;
255255
try {
256256
const response = await fetch('https://chatgpt.tobiasmue91.workers.dev/', {
257257
method: 'POST',

0 commit comments

Comments
 (0)