Skip to content

feat(search): add Keenable as a /v1/search provider - #49671

Open
KGKallasmaa wants to merge 1 commit into
BerriAI:mainfrom
KGKallasmaa:litellm_keenable_search_provider
Open

KGKallasmaa wants to merge 1 commit into
BerriAI:mainfrom
KGKallasmaa:litellm_keenable_search_provider

Conversation

@KGKallasmaa

@KGKallasmaa KGKallasmaa commented Nov 2, 2026 •

Copy link
Copy Markdown

Handwritten 1-3 sentence description

Adds Keenable web search as a LiteLLM search provider so apps can call search_provider="keenable" the same way they call Exa or Tavily. Works with a Keenable API key or, without one, Keenable's public search tier. Pricing, Admin UI logo, and MCP registry entry are included so the provider shows up everywhere the other search tools do

Details

TLDR

Problem this solves:

  • No native Keenable option on LiteLLM search
  • Teams using Keenable had to call it outside the gateway

How it solves it:

  • Adds search_provider="keenable" against Keenable /v1/search
  • Keyed calls use X-API-Key, keyless use /v1/search/public
  • Registers pricing, UI logo, MCP catalog entry, and unit tests

Intentional product change: Keenable appears in the search-tool provider list and MCP catalog alongside Exa and Tavily

User Flow

Before: a developer cannot route search through Keenable on the gateway

  1. They call litellm.search(..., search_provider="keenable") or configure a search tool with that provider
  2. The call fails because Keenable is not a known search provider
  3. They have to hit https://api.keenable.ai/v1/search outside LiteLLM

After: the same call goes through LiteLLM to Keenable and returns ranked results

  1. They call litellm.search(query="typescript best practices", search_provider="keenable", max_results=2) with no key, or with KEENABLE_API_KEY
  2. LiteLLM POSTs to Keenable search (public or keyed) and returns object: "search" with result titles, URLs, and snippets
  3. On the Admin UI search-tools create flow, Keenable shows with its logo in the provider picker

Pre-Submission checklist

  • I have added meaningful tests
  • The handful of test files covering my change pass locally, e.g. uv run pytest tests/unit/llms/keenable/search/test_transformation.py -v. Leave the suites (make test-unit-*, make test-unit) to CI: it finishes in ~15 minutes where a laptop takes an hour or more
  • My PR passes all required CI/CD checks (e.g., lint, schema.d.ts sync check, etc.)
  • My PR's scope is as isolated as possible; it only solves 1 specific problem
  • Every automated review on my PR's latest commit has finished, and I have addressed or replied to each of its findings before requesting a maintainer review

Screenshots / Proof of Fix

Before (1046716)

  1. On main, SearchProviders has no KEENABLE member (git show main:litellm/types/utils.py has EXA_AI only in that block)
  2. litellm.search(..., search_provider="keenable") is not a valid provider on that tip

After (d953cb3)

  1. uv run pytest tests/unit/llms/keenable/search/test_transformation.py -q → 11 passed
  2. Live keyless call: litellm.search(query="typescript best practices", search_provider="keenable", max_results=2) → object: search, 2 results, first title/URL from Keenable's public index
  3. Keyed path covered by unit tests posting to https://api.keenable.ai/v1/search with X-API-Key

Type

🆕 New Feature
✅ Test

Caveats

Low

  • Logo is a placeholder favicon until Keenable brand art is swapped in
  • Multi-domain search_domain_filter keeps only the first domain as Keenable site
  • max_tokens_per_page is ignored (Keenable's snippet_max_length is characters 180–10000, not tokens)

Wire search_provider=keenable to Keenable search API (keyed or public),
with pricing, UI logo, MCP registry entry, and unit coverage.
@CLAassistant

CLAassistant commented Nov 2, 2026 •

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants