* fix(settings): answer 404 for unknown connection-test run ids
* chore(api): refresh router index for the settings route change
tests/api/test_router_loader.py::test_repository_index_matches_router_sources
checks the fingerprint of router sources; regenerated with
scripts/build_router_index.py.
---------
Co-authored-by: zszz3 <91608029+zszz3@users.noreply.github.com>
Document workspace knowledge-base moves, connected Kiwix archives, source
figures, and the Task Board in the release notes and README. Sync all eleven
README translations and the version badge. Fix lint-only type annotations and
a duplicate French locale key found by the release gate.
See assets/releases/ver1-6-12.md for the full release notes.
Ship folder-based workspaces and data migration, daily practice, redesigned
provider and model settings, and streaming conversation improvements.
Synchronize README translations and document the archive/permanent-delete
upgrade behavior in assets/releases/ver1-6-9.md.
Reduce initial JavaScript by deduplicating English resources and loading
animation features after hydration. Keep the existing route size budgets.
Update regression fixtures and browser audits for scoped URLs and the new
settings and learning interfaces.
The Settings page's "Test" button for the task model crashed with
"Unsupported service: task" because ConfigTestRunner.run() had no
branch for the task service — only llm, embedding, and search.
Add a _test_task() path that mirrors the production semantics from
deeptutor/services/model_selection/tasks.py:
- No task profile configured (or no active catalog selection) ->
complete cleanly with "skipped" status, explaining that
conversation titles and composer starting points inherit the main LLM.
- Task model configured -> resolve via the catalog
(resolve_llm_runtime_config(service_name="task")), emit the resolved
model/binding/request target, then send a short title-style
completion probe with a small token budget (mirrors the production
title calls) and report success with the first ~120 chars of the
response.
No context-window probing for the task service, matching the
"short, bounded" production usage.
* fix(config): bump probe budget for reasoning models
Reasoning models (o1/o3, gpt-5.x) require max_completion_tokens, and
the API rejects the test-connection probe when the completion budget
is too low to cover the internal reasoning pass. Bumps the default
probe budget to 4096 for models that use max_completion_tokens.
* fix(config): preserve probe token overrides
* review: seed the probe knob, and test the thing this PR changes
The raised fallback is unreachable. `get_agent_params` always returns both
keys — it falls back to `DEFAULT_AGENTS_SETTINGS`, then to a generic
0.5/4096 — so `_test_llm`'s constant never decides anything and the probe has
been running at 4096 all along. This PR, as written, changes nothing for
anyone.
What does change it is the seed, which had no `diagnostics` section at all: a
fresh agents.yaml never showed the knob, and a stale one kept whatever it
already said. Seeded at the same number the fallback names, because two lists
of the same value is how a default and its seed drift apart (#1316). The
temperature moves 0.5 -> 0.1 as a result, which is what `test_runner` always
meant to ask for: a diagnostic wants a reproducible answer.
`tests/config/test_reasoning_probe_budget.py` tested
`uses_max_completion_tokens()`, a function this PR does not touch. It now
pins the floor, that agents.yaml still wins over it, that an unusable value
falls back rather than raising, and that the seed and the floor agree.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
---------
Co-authored-by: XZH <cto@xzh.ai>
Co-authored-by: Bingxi Zhao (Frank) <13051345080@163.com>
Co-authored-by: Claude Opus 5 <noreply@anthropic.com>
Redact credentials from catalog responses and diagnostic streams, restore masked placeholders server-side, and resolve saved credentials for model discovery without returning them to the browser.
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.
Adds a Gemini embedding adapter that speaks the native :batchEmbedContents endpoint, so Embedding 2's retrieval-role prompt instructions and configurable output dimensionality are available, and threads a retrieval role (query vs document) from both RAG pipelines down to the client.
The role is opt-in per adapter: Jina and the OpenAI-compatible backends keep sending exactly what they sent before, because adding a task hint changes the vectors and would invalidate indexes already built. For the same reason only Embedding 2 defaults to the native endpoint — an existing gemini-embedding-001 profile stays on the OpenAI-compatible path unless its endpoint is set to the native URL explicitly.
Also redacts credential-like query parameters from endpoint values shown in errors and diagnostics.
Embedding endpoint URLs are now transparent end-to-end: Settings shows the
exact URL DeepTutor will POST to, legacy `/v1`-style bases are migrated to
full `/embeddings` / `/api/embed` URLs, the embedding client rejects
known-provider misconfigurations early, and OpenRouter routes through the
same exact-URL HTTP adapter as other providers.
LlamaIndex RAG now refreshes embedding state before initialize/search/add,
validates persisted vectors before retrieval, and reports invalid indexes
with `needs_reindex: true` instead of raw NumPy/`NoneType` errors.
Memory refresh strips `<think>` / `<thinking>` blocks from reasoning-model
output before writing PROFILE.md / SUMMARY.md, and existing memory files
self-repair on read.
Also fixes a Deep Solve runtime regression where `MainSolver` still passed
a stale `attachments` keyword to `SolverAgent.process()`.
Adds release notes (assets/releases/ver1-3-2.md) and updates README.
Made-with: Cursor
Stability release after v1.3.0 covering safer RAG/KB routing, stronger
embedding validation, more reliable Docker/TutorBot restarts, Web UX
fixes, and Windows/encoding hardening. See assets/releases/ver1-3-1.md
for the full notes.
Made-with: Cursor
The Settings → LLM diagnostic hardcoded max_tokens=200. Reasoning-capable
models (minimax-m2, o1, Gemini thinking) spend most of that budget on
internal thinking tokens and return empty visible content, which the
probe then reports as "LLM returned an empty response" even though the
API call succeeded.
Read the budget from LLM_TEST_MAX_TOKENS with a 1024 default (falls back
on non-numeric values). Documented in .env.example and plumbed through
docker-compose.yml.
The _test_llm method in ConfigTestRunner was not forwarding extra_headers to
llm_complete(), causing custom User-Agent and other headers to be ignored
during model connection tests.
This ensures that user-configured extra_headers in model settings are properly
propagated to the LLM API call during connection testing.
- Remove CONSOLIDATION_TYPES and explicit consolidation parameter;
auto-consolidate for providers without native answer support.
- Build LLM/Embedding/Search configs directly from resolved runtime
config in ConfigTestRunner instead of relying on global cache.
- Clean up default settings by removing unused consolidation fields.
Made-with: Cursor