mirror of
https://github.com/jina-ai/node-DeepResearch.git
synced 2026-03-22 07:29:35 +08:00
fix: s dot jina
This commit is contained in:
@@ -13,13 +13,12 @@ export function search(query: string, tracker?: TokenTracker): Promise<{ respons
|
|||||||
const options = {
|
const options = {
|
||||||
hostname: 's.jina.ai',
|
hostname: 's.jina.ai',
|
||||||
port: 443,
|
port: 443,
|
||||||
path: `/${encodeURIComponent(query)}?count=10`,
|
path: `/?q=${encodeURIComponent(query)}`,
|
||||||
method: 'GET',
|
method: 'GET',
|
||||||
headers: {
|
headers: {
|
||||||
'Accept': 'application/json',
|
'Accept': 'application/json',
|
||||||
'Authorization': `Bearer ${JINA_API_KEY}`,
|
'Authorization': `Bearer ${JINA_API_KEY}`,
|
||||||
'X-Respond-With': 'no-content',
|
'X-Respond-With': 'no-content',
|
||||||
'X-Retain-Images': 'none'
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user