mirror of
https://github.com/HKUDS/DeepTutor.git
synced 2026-12-02 06:29:24 +08:00
Two pieces of work land together because the second is built on the first: the provider layer was consolidated onto one spec table, then six new providers were registered against it. Layer overhaul - Converge seven separate provider lists (backend registry, runtime config, settings router, CLI wizard, frontend catalog, i18n, tests) onto a single SEARCH_PROVIDERS spec table; every consumer derives from it instead of keeping its own copy. - Fix three silent defects: serper's `num` never reached the API (it was swallowed by **kwargs, so max_results did nothing), serper dropped its proxies, and jina had no result-count limit at all. - A runtime failure (rate limit, timeout, unreachable network) no longer fails the whole turn. The request walks the user's other credentialed search profiles and finally DuckDuckGo, recording the downgrade under a top-level `search_fallback` key so the trace shows what happened. - Drop three provider modules that were never registered (exa, baidu, openrouter). They stay in the deprecated list, so a stale config reads as outdated rather than as a misspelled name. Six new providers doubao, bocha, zhipu, firecrawl, qianfan, aliyun_iqs — selectable under Settings > Catalog > Search with their credential fields derived from the spec table, and offered by `deeptutor init`. All six set `soft_fallback=False`: five are China-hosted and the DuckDuckGo fallback is unreachable on those networks, so a missing API key has to fail loudly instead of silently timing out somewhere else. Baidu returns as `qianfan` on the official Qianfan API; the old `baidu` key stays deprecated.