Skip to content

Commit 4490fd7

Browse files
committed
feat: update openai prompt
1 parent 327c5a1 commit 4490fd7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/translate/src/openai.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,7 @@ TRANSLATION VERIFICATION CHECKLIST (CHECK BEFORE SUBMITTING):
288288
1. Does ANY frontmatter value start with \`, ', or "? → If YES, REARRANGE the sentence
289289
2. Does ANY frontmatter value contain a colon (:)? → If YES, REPHRASE to avoid it
290290
3. Is the frontmatter valid YAML? → Test mentally: can a YAML parser read it?
291-
4. Are all component tags properly closed?
291+
4. Are all component tags properly closed if they were closed in the original text?
292292
5. Are code blocks and inline code preserved exactly?
293293
294294
End of frontmatter rules.
@@ -300,7 +300,7 @@ ${context}
300300
Please read the following rules carefully:
301301
302302
General rules:
303-
- The document is MDX format - ensure all component tags are properly closed (e.g., \`<AppOnly> </AppOnly>\` \`<PagesOnly> </PagesOnly>\` )
303+
- The document is MDX format - ensure all component tags are properly closed if they were closed in the original text (e.g., \`<AppOnly> </AppOnly>\` \`<PagesOnly> </PagesOnly>\` )
304304
- Keep unchanged:
305305
- All code blocks
306306
- Markdown formatting

0 commit comments

Comments
 (0)