feat: config manager modal
This commit is contained in:
9
composables/useTavily.ts
Normal file
9
composables/useTavily.ts
Normal file
@ -0,0 +1,9 @@
|
||||
import { tavily } from '@tavily/core'
|
||||
|
||||
export const useTavily = () => {
|
||||
const config = useConfigStore()
|
||||
const tvly = tavily({
|
||||
apiKey: config.config.webSearch.apiKey,
|
||||
})
|
||||
return tvly
|
||||
}
|
Reference in New Issue
Block a user