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 = {
|
||||
hostname: 's.jina.ai',
|
||||
port: 443,
|
||||
path: `/${encodeURIComponent(query)}?count=10`,
|
||||
path: `/?q=${encodeURIComponent(query)}`,
|
||||
method: 'GET',
|
||||
headers: {
|
||||
'Accept': 'application/json',
|
||||
'Authorization': `Bearer ${JINA_API_KEY}`,
|
||||
'X-Respond-With': 'no-content',
|
||||
'X-Retain-Images': 'none'
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user