mirror of
https://github.com/HKUDS/DeepTutor.git
synced 2026-12-06 17:00:00 +08:00
Engine-level search provider backed by DeepSeek's /v1/tools/search endpoint, distinct from the model-side web_search tool mapping: works with any configured LLM. Rows carry no model-written answer, so consolidation still supplies it. - providers/deepseek.py: Bearer auth, count capped 1-50, need_content default False (page Markdown kept in SearchResult.content only when requested), summary preferred over snippet as the model-facing blurb, authority/rerank_score in attributes, proxy honored, base_url used verbatim with the documented endpoint as fallback. No new dependency. - SEARCH_PROVIDERS: label DeepSeek, requires_api_key=True, soft_fallback=False (billed per request; a missing key raises instead of landing on DuckDuckGo). - Init wizard entry with DEEPSEEK_API_KEY/SEARCH_API_KEY env keys, keeping the wizard set equal to the backend table. - TracePresentation PROVIDER_LABELS: deepseek -> DeepSeek (titleCase would render "Deepseek"). - Tests: row mapping, 401/402/429 paths, missing key fails before network, and the base_url/proxy/max_results contract via _NEW_PROVIDERS.