refactor: move general utils to shared directory

This commit is contained in:
AnotiaWang
2025-03-23 14:55:19 +08:00
parent ff1e79603d
commit 60f6f227c3
11 changed files with 124 additions and 63 deletions

View File

@ -19,7 +19,7 @@
}>()
const { t, locale } = useI18n()
const { showConfigManager, isConfigValid } = storeToRefs(useConfigStore())
const { showConfigManager, isConfigValid, config } = storeToRefs(useConfigStore())
const toast = useToast()
const reasoningContent = ref('')
@ -57,6 +57,7 @@
query: form.value.query,
numQuestions: form.value.numQuestions,
language: t('language', {}, { locale: locale.value }),
aiConfig: config.value.ai,
})) {
if (f.type === 'reasoning') {
reasoningContent.value += f.delta