feat(search): add Xquik X search provider (#11370)

Merged into release/v3.8.51 via batch validation: xquik provider suites green on the combined tree (193 node:test assertions incl. your 7 new cases), check:provider-consistency OK (353 canonical providers), static gates green. Well-scoped fallbackOnly X-provider with clean citation building — thanks @kriptoburak!
This commit is contained in:
Burak Bayır
2026-08-25 07:39:39 +03:00
committed by GitHub
parent 14ca809924
commit a0ceccc6f0
70 changed files with 893 additions and 248 deletions

View File

@@ -167,6 +167,13 @@ export const SEARCH_VALIDATOR_CONFIGS: Record<
}),
},
}),
"xquik-search": (apiKey) => ({
url: "https://xquik.com/api/v1/x/tweets/search?q=test&limit=1",
init: {
method: "GET",
headers: { Accept: "application/json", "x-api-key": apiKey },
},
}),
"zai-search": (apiKey, providerSpecificData = {}) => {
const baseUrl =
typeof providerSpecificData?.baseUrl === "string" && providerSpecificData.baseUrl.trim()

View File

@@ -127,7 +127,10 @@ export async function executeWebSearch(
const log = input.log || defaultLog;
if (input.provider === "x_search") input.provider = "x-search";
if (input.provider === "x-search") input.search_type = "x";
if (input.provider === "xquik" || input.provider === "xquik_search") {
input.provider = "xquik-search";
}
if (input.provider === "x-search" || input.provider === "xquik-search") input.search_type = "x";
const searchType = input.search_type || "web";
if (input.provider) {