mirror of
https://github.com/jina-ai/node-DeepResearch.git
synced 2026-03-22 07:29:35 +08:00
fix: serper search
This commit is contained in:
@@ -5,10 +5,9 @@ import { SerperSearchResponse } from '../types';
|
||||
|
||||
export async function serperSearch(query: string): Promise<{ response: SerperSearchResponse }> {
|
||||
const response = await axios.post<SerperSearchResponse>('https://google.serper.dev/search', {
|
||||
data: JSON.stringify({
|
||||
q: query,
|
||||
autocorrect: false,
|
||||
}),
|
||||
q: query,
|
||||
autocorrect: false,
|
||||
}, {
|
||||
headers: {
|
||||
'X-API-KEY': SERPER_API_KEY,
|
||||
'Content-Type': 'application/json'
|
||||
|
||||
Reference in New Issue
Block a user