Skip to content

Commit

Permalink
improve the stability of response language (#611)
Browse files Browse the repository at this point in the history
  • Loading branch information
josStorer committed Jan 26, 2024
1 parent 97ca973 commit faf5e87
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/content-script/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,9 @@ async function getInput(inputQuery) {
let input
if (typeof inputQuery === 'function') {
input = await inputQuery()
if (input) return `Reply in ${await getPreferredLanguage()}.\n` + input
const replyPromptBelow = `Reply in ${await getPreferredLanguage()}. Regardless of the language of content I provide below. !!This is very important!!`
const replyPromptAbove = `Reply in ${await getPreferredLanguage()}. Regardless of the language of content I provide above. !!This is very important!!`
if (input) return `${replyPromptBelow}\n\n` + input + `\n\n${replyPromptAbove}`
return input
}
const searchInput = getPossibleElementByQuerySelector(inputQuery)
Expand Down

0 comments on commit faf5e87

Please sign in to comment.