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

@ -1,4 +1,5 @@
import { skipHydrate } from 'pinia'
import type { Locale } from '~/components/LangSwitcher.vue'
export type ConfigAiProvider = 'openai-compatible'
export interface ConfigAi {
@ -11,6 +12,8 @@ export interface ConfigAi {
export interface ConfigWebSearch {
provider: 'tavily'
apiKey?: string
/** Force the LLM to generate serp queries in a certain language */
searchLanguage?: Locale
}
export interface Config {