mirror of
https://github.com/jina-ai/node-DeepResearch.git
synced 2025-12-26 06:28:56 +08:00
fix: s dot jina
This commit is contained in:
parent
4d76f146d0
commit
4fc4fa8fa9
@ -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'
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user