mirror of
https://github.com/diegosouzapw/OmniRoute.git
synced 2026-09-19 21:32:20 +03:00
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:
@@ -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()
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user