feat: search in a different language

This commit is contained in:
AnotiaWang
2025-02-13 22:26:43 +08:00
parent 86c63d569b
commit 83f64b5948
9 changed files with 67 additions and 9 deletions

View File

@ -20,7 +20,7 @@ export const systemPrompt = () => {
* @param language the language of the prompt, e.g. `English`
*/
export const languagePrompt = (language: string) => {
let languagePrompt = `- Respond in ${language}.`
let languagePrompt = `Respond in ${language}.`
if (language === '中文') {
languagePrompt +=