Skip to content

Commit faf5e87

Browse files
committed
improve the stability of response language (#611)
1 parent 97ca973 commit faf5e87

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/content-script/index.jsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,9 @@ async function getInput(inputQuery) {
9090
let input
9191
if (typeof inputQuery === 'function') {
9292
input = await inputQuery()
93-
if (input) return `Reply in ${await getPreferredLanguage()}.\n` + input
93+
const replyPromptBelow = `Reply in ${await getPreferredLanguage()}. Regardless of the language of content I provide below. !!This is very important!!`
94+
const replyPromptAbove = `Reply in ${await getPreferredLanguage()}. Regardless of the language of content I provide above. !!This is very important!!`
95+
if (input) return `${replyPromptBelow}\n\n` + input + `\n\n${replyPromptAbove}`
9496
return input
9597
}
9698
const searchInput = getPossibleElementByQuerySelector(inputQuery)

0 commit comments

Comments
 (0)