Skip to content

Commit 54e6db9

Browse files
committed
feat: update openai prompt
1 parent ce96008 commit 54e6db9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/translate/src/openai.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,8 @@ async function translateChunk(
222222
• NEVER start a frontmatter value with inline code (text between \`backticks\`)
223223
• NEVER start a frontmatter value with single quotes ('text')
224224
• NEVER start a frontmatter value with double quotes ("text")
225-
• NEVER use colon (:) character in frontmatter values as it conflicts with YAML syntax
225+
• NEVER use colon (:) character in frontmatter values as it conflicts with YAML syntax (e.g., \`headline: Fondations React : À propos de React et Next.js\` is NOT allowed)
226+
• NEVER wrap frontmatter values in single quotes ('') - values should be written directly without quotes (e.g., use \`headline: Fondations React\` instead of \`headline: 'Fondations React'\`)
226227
• This applies to ALL inline code including \`<Component>\` tags, \`functions\`, variables, etc.
227228
• This applies to ALL quoted text including 'use cache', "API design", 'components', etc.
228229
• In frontmatter (sections between --- marks), ALWAYS rearrange sentences so inline code and quoted text appears AFTER some text

0 commit comments

Comments
 (0)