Merge pull request #30 from davideuler/main

send 'markdown' format request to firecrawl to get complete markdown …
This commit is contained in:
WangYK
2025-02-22 11:13:01 +08:00
committed by GitHub

View File

@ -28,7 +28,12 @@ export const useWebSearch = (): WebSearchFunction => {
apiUrl: webSearchApiBase,
})
return async (q: string, o: WebSearchOptions) => {
const results = await fc.search(q, o)
const results = await fc.search(q, {
...o,
scrapeOptions: {
formats: ['markdown']
}
})
if (results.error) {
throw new Error(results.error)
}