feat: support setting concurrency limits in web search

This commit is contained in:
AnotiaWang
2025-02-17 16:20:25 +08:00
parent c10090d7d9
commit fc83d9387e
9 changed files with 80 additions and 22 deletions

View File

@ -21,6 +21,8 @@ export interface ConfigWebSearch {
apiKey?: string
/** Force the LLM to generate serp queries in a certain language */
searchLanguage?: Locale
/** Limit the number of concurrent tasks globally */
concurrencyLimit?: number
}
export interface Config {
@ -37,8 +39,9 @@ export const useConfigStore = defineStore('config', () => {
},
webSearch: {
provider: 'tavily',
concurrencyLimit: 2,
},
})
} satisfies Config)
// The version user dismissed the update notification
const dismissUpdateVersion = useLocalStorage<string>(
'dismiss-update-version',