mirror of
https://github.com/diegosouzapw/OmniRoute.git
synced 2026-08-22 07:02:16 +03:00
⭐5 — Provider x-search de primeira classe (SuperGrok/xAI x_search) em POST /v1/search e MCP omniroute_x_search. Fallback de credenciais xai-oauth→xao→xai; distinto de web search e do X Developer MCP. Reconciliado com o release tip (que já incluía #10981 "skip catalog-default SearXNG" deste mesmo lote): merge trouxe 5 conflitos reais de contagem gerada (llm.txt/README.md/AGENTS.md/PROVIDER_REFERENCE.md/SVGs/46 mirrors i18n, todos verificados como bump puro 347→348, sem perda de conteúdo do HEAD) + 1 conflito real de mergeable=CONFLICTING. Durante a validação, os 3 testes novos de SearXNG expuseram um bug real de interação com #10981: `isUnconfiguredLoopbackSearchProvider()` checava o baseUrl ESTÁTICO do catálogo em vez do baseUrl efetivo (após override de `provider_options.baseUrl` ou `providerSpecificData.baseUrl` da conexão), então QUALQUER request a searxng-search — mesmo com override customizado — era rejeitado como se fosse o default não-configurado. Corrigido em `open-sse/handlers/search.ts` (resolve o baseUrl efetivo via `resolveSearchBaseUrl()` antes do skip-check, tanto para o provider primário quanto o alternate). Um teste do próprio #10988 que assumia o comportamento pré-#10981 (default localhost:8888 sempre atendido) foi atualizado para refletir o comportamento já mesclado e intencional (503 quando não configurado). Validação completa: typecheck limpo, 70/70 testes unit (search-route/search-registry/x-search-provider/searxng-loopback-default), 24/24 vitest MCP, 14/14 integration (search-providers-catalog), lint limpo nos arquivos tocados, docs-counts-sync OK (2 drifts soft pré-existentes, não relacionados), gates estáticos (file-size/complexity/cognitive/dead-code/changelog) todos OK.
97 lines
3.8 KiB
JSON
97 lines
3.8 KiB
JSON
{
|
|
"cloudAgentGuard": {
|
|
"jules": {
|
|
"message": "Provider \"jules\" is a cloud-agent provider and does not support direct chat completions; use the Cloud Agents task API instead.",
|
|
"status": 400,
|
|
"throws": true
|
|
}
|
|
},
|
|
"fallback": {
|
|
"className": "DefaultExecutor",
|
|
"configSource": "openai",
|
|
"provider": "golden-test-unknown-provider"
|
|
},
|
|
"searchGuard": {
|
|
"brave-search": {
|
|
"message": "Provider \"brave-search\" is a search provider and does not support chat completions; use the /v1/search endpoint instead.",
|
|
"status": 400,
|
|
"throws": true
|
|
},
|
|
"duckduckgo-free": {
|
|
"message": "Provider \"duckduckgo-free\" is a search provider and does not support chat completions; use the /v1/search endpoint instead.",
|
|
"status": 400,
|
|
"throws": true
|
|
},
|
|
"exa-search": {
|
|
"message": "Provider \"exa-search\" is a search provider and does not support chat completions; use the /v1/search endpoint instead.",
|
|
"status": 400,
|
|
"throws": true
|
|
},
|
|
"firecrawl": {
|
|
"message": "Provider \"firecrawl\" is a search provider and does not support chat completions; use the /v1/search endpoint instead.",
|
|
"status": 400,
|
|
"throws": true
|
|
},
|
|
"google-pse-search": {
|
|
"message": "Provider \"google-pse-search\" is a search provider and does not support chat completions; use the /v1/search endpoint instead.",
|
|
"status": 400,
|
|
"throws": true
|
|
},
|
|
"jina-search": {
|
|
"message": "Provider \"jina-search\" is a search provider and does not support chat completions; use the /v1/search endpoint instead.",
|
|
"status": 400,
|
|
"throws": true
|
|
},
|
|
"linkup-search": {
|
|
"message": "Provider \"linkup-search\" is a search provider and does not support chat completions; use the /v1/search endpoint instead.",
|
|
"status": 400,
|
|
"throws": true
|
|
},
|
|
"ollama-search": {
|
|
"message": "Provider \"ollama-search\" is a search provider and does not support chat completions; use the /v1/search endpoint instead.",
|
|
"status": 400,
|
|
"throws": true
|
|
},
|
|
"perplexity-search": {
|
|
"message": "Provider \"perplexity-search\" is a search provider and does not support chat completions; use the /v1/search endpoint instead.",
|
|
"status": 400,
|
|
"throws": true
|
|
},
|
|
"searchapi-search": {
|
|
"message": "Provider \"searchapi-search\" is a search provider and does not support chat completions; use the /v1/search endpoint instead.",
|
|
"status": 400,
|
|
"throws": true
|
|
},
|
|
"searxng-search": {
|
|
"message": "Provider \"searxng-search\" is a search provider and does not support chat completions; use the /v1/search endpoint instead.",
|
|
"status": 400,
|
|
"throws": true
|
|
},
|
|
"serper-search": {
|
|
"message": "Provider \"serper-search\" is a search provider and does not support chat completions; use the /v1/search endpoint instead.",
|
|
"status": 400,
|
|
"throws": true
|
|
},
|
|
"tavily-search": {
|
|
"message": "Provider \"tavily-search\" is a search provider and does not support chat completions; use the /v1/search endpoint instead.",
|
|
"status": 400,
|
|
"throws": true
|
|
},
|
|
"x-search": {
|
|
"message": "Provider \"x-search\" is a search provider and does not support chat completions; use the /v1/search endpoint instead.",
|
|
"status": 400,
|
|
"throws": true
|
|
},
|
|
"youcom-search": {
|
|
"message": "Provider \"youcom-search\" is a search provider and does not support chat completions; use the /v1/search endpoint instead.",
|
|
"status": 400,
|
|
"throws": true
|
|
},
|
|
"zai-search": {
|
|
"message": "Provider \"zai-search\" is a search provider and does not support chat completions; use the /v1/search endpoint instead.",
|
|
"status": 400,
|
|
"throws": true
|
|
}
|
|
}
|
|
}
|