api call updates
This commit is contained in:
parent
77c59d53c8
commit
c366fa6ece
@ -406,7 +406,7 @@ export async function fetchParallelContent(params: {
|
|||||||
method: "POST",
|
method: "POST",
|
||||||
headers: {
|
headers: {
|
||||||
"Content-Type": "application/json",
|
"Content-Type": "application/json",
|
||||||
Authorization: `Bearer ${params.apiKey}`,
|
"x-api-key": params.apiKey,
|
||||||
"parallel-beta": "search-extract-2025-10-10",
|
"parallel-beta": "search-extract-2025-10-10",
|
||||||
},
|
},
|
||||||
body: JSON.stringify({
|
body: JSON.stringify({
|
||||||
|
|||||||
@ -376,7 +376,7 @@ async function runParallelSearch(params: {
|
|||||||
method: "POST",
|
method: "POST",
|
||||||
headers: {
|
headers: {
|
||||||
"Content-Type": "application/json",
|
"Content-Type": "application/json",
|
||||||
Authorization: `Bearer ${params.apiKey}`,
|
"x-api-key": params.apiKey,
|
||||||
"parallel-beta": "search-extract-2025-10-10",
|
"parallel-beta": "search-extract-2025-10-10",
|
||||||
},
|
},
|
||||||
body: JSON.stringify({
|
body: JSON.stringify({
|
||||||
@ -384,7 +384,7 @@ async function runParallelSearch(params: {
|
|||||||
search_queries: [params.query],
|
search_queries: [params.query],
|
||||||
max_results: params.count,
|
max_results: params.count,
|
||||||
excerpts: {
|
excerpts: {
|
||||||
max_chars_per_result: 500,
|
max_chars_per_result: 2000,
|
||||||
},
|
},
|
||||||
mode: "agentic",
|
mode: "agentic",
|
||||||
}),
|
}),
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user