An AI-powered search engine with a generative UI
TypeScript generative-aigenerative-uinextjsollamareactsearxngshadcn-uitailwindcsstavilytypescriptupstashvercel-ai-sdk
Add 'X-With-Generated-Alt' header to retrieveTool API request
Yoshiki Miura2e773be15c8e
diff --git a/lib/agents/tools/retrieve.tsx b/lib/agents/tools/retrieve.tsxindex 4fa0ca1f..2200727f 100644--- a/lib/agents/tools/retrieve.tsx+++ b/lib/agents/tools/retrieve.tsx@@ -28,7 +28,8 @@ export const retrieveTool = ({const response = await fetch(`https://r.jina.ai/${url}`, {method: 'GET',headers: {- Accept: 'application/json'+ Accept: 'application/json',+ 'X-With-Generated-Alt': 'true'}})const json = await response.json()