[Feature Request]: Add TinyFish as a web search provider
Do you need to file a feature request?
- [x] I have searched the existing feature request and this feature request is not already filed.
- [x] I believe this is a legitimate feature request, not just a question or bug.
Feature Request Description
Add TinyFish as a web search provider in Settings > Search.
The provider layer is already designed for this - SEARCH_PROVIDERS in services/config/provider_runtime.py is documented as "the ONE place that decides what a search provider is," and the registry, the Settings dropdown, the connection-field form, and the CLI wizard all derive from it. A new provider is one settings row plus one adapter file, with no frontend changes.
TinySearch is a GET https://api.search.tinyfish.ai call authenticated with an X-API-Key header. It returns a ranked results[] of
{
position,
site_name,
snippet, title,
url
}
which maps directly onto the existing SearchResult and Citation dataclasses. It supports include_domains / exclude_domains, language, and page, all of which have analogues in the current provider kwargs contract.
Because it returns no LLM-authored answer, it would set supports_answer=False and use the existing AnswerConsolidator - the same path as Brave, DuckDuckGo, and most current providers. No consolidation template is needed.
Related Module
API/Backend
Use Case
The main draw is a usable free tier. Search is free within a daily allowance and requires no credit card, which makes it a lower-friction option than the paid engines while still being a hosted, structured SERP rather than a scrape. For users who already have a TinyFish key - the project already lists the TinyFish CLI harness in the CLI-apps catalog - it avoids provisioning a second vendor just for search.
Two smaller advantages over the credential-free default: results are a ranked, structured API rather than a ddgs scrape, and soft_fallback=True means an exhausted daily allowance degrades through the existing search_fallback_candidates() chain to DuckDuckGo instead of failing the turn.
Additional Context
Scope proposal: search only.
TinyFish also offers TinyFetch (page extraction), TinyAnswer, TinyResearch, and TinyBrowser. Only TinySearch is proposed here. Search is self-contained and adds a new capability; TinyFetch would duplicate the existing DeepSeek Fetch backend and raises a separate question about how fetch backends receive credentials, since _fetch_via_backend() currently constructs backends with no keyword arguments and there is no fetch_provider_credentials() counterpart to the search one. Happy to follow up on fetch separately if search lands.
I'm happy to implement this and open the PR against dev. Planned diff:
- SEARCH_PROVIDERS row in
deeptutor/services/config/provider_runtime.py deeptutor/services/search/providers/tinyfish.pywith @register_provider("tinyfish")- Registration in _register_builtin_providers() in
services/search/providers/__init__.py - A row in
deeptutor_cli/init_wizard.pyso deeptutor init offers it - Tests in
tests/services/search/test_search_providers.py, one per provider following the existing requests-monkeypatched pattern
No frontend changes should be required, since the dropdown and connection fields derive from the spec table.