feat: respond in user's language, style fixes and research depth fixes

This commit is contained in:
AnotiaWang
2025-02-12 19:34:21 +08:00
parent 5a973b5d63
commit b0c86ce2e2
8 changed files with 80 additions and 34 deletions

View File

@ -54,7 +54,7 @@
import type { ResearchFeedbackResult } from '~/components/ResearchFeedback.vue'
import type { ResearchResult } from '~/lib/deep-research'
const { t } = useI18n()
const { t, locale } = useI18n()
const { config } = useConfigStore()
const toast = useToast()
@ -113,6 +113,7 @@ ${feedback.value
prompt: getCombinedQuery(),
learnings: researchResult.value?.learnings ?? [],
visitedUrls: researchResult.value?.visitedUrls ?? [],
language: t('language', {}, { locale: locale.value }),
})
}
</script>