Skip to content

Commit

Permalink
fix: serper search
Browse files Browse the repository at this point in the history
  • Loading branch information
nomagick committed Feb 20, 2025
1 parent 36921f4 commit 40ee042
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/tools/serper-search.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down

0 comments on commit 40ee042

Please sign in to comment.