First revision: DeepSeek, numeric questions, background assistant, UI fixes
All checks were successful
Verify and publish V2 container / build-and-push (push) Successful in 1m2s
All checks were successful
Verify and publish V2 container / build-and-push (push) Successful in 1m2s
Providers and pricing - Add a DeepSeek provider: thinking mode with low/high/max effort, reasoning_content replayed between tool steps, cache-hit usage, /models discovery and catalog prices. - Fix "does not support tool calling": a rejected forced tool_choice (DeepSeek thinking mode) now asks for the call in the prompt; only a genuine no-tools 400 is "unsupported". - Seven reasoning-effort levels (Off to Max) mapped per adapter. - Cached-input price per model, cache-write and DeepSeek off-peak aware cost estimates. - Built-in bge-small embedding model (transformers.js) as the semantic search default. Quizzes - Numeric (type-the-answer) questions: units ignored, optional ± tolerance; editor, runner, importer, templates and generation prompts. - Quiz start screen instead of showing answers; navigator ring no longer clipped and key legend removed; clock only for timed exams; 7-point letter grades. Assistant and generation - Assistant turns run on the server independently of the browser, with re-attach and an explicit stop; drafts tray shows generations in progress. - Per-chat model switcher, @-tagging of class materials, full-width assistant page and a smaller assistant button. - Editable generation instructions and built-in presets, separate from the chatbot import instructions. Other - Dialog footer padding, keyboard hints removed, copy buttons work over plain HTTP, class and folder shares include documents. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
ccdad9728b
commit
f0aabe4d5d
63 changed files with 3892 additions and 488 deletions
28
PROGRESS.md
28
PROGRESS.md
|
|
@ -61,10 +61,34 @@ type-grouped materials, copyable import instructions and assistant library links
|
|||
enabled from Settings and indexed; a 1-minute exam counted down on the wall clock and
|
||||
auto-submitted at 60 s; a shared session kept original questions after the owner edited them.
|
||||
|
||||
## 2026-11-15: first revision (owner's 21-item list)
|
||||
|
||||
Implemented and verified on an isolated instance (`.test-data/rev1`, port 3743):
|
||||
DeepSeek provider (`server/ai/providers/deepseek.ts`); 7 reasoning-effort levels mapped per
|
||||
adapter; the "does not support tool calling" errors were DeepSeek rejecting forced tool choice
|
||||
in thinking mode: compatible servers now get the call requested in the prompt, and only a
|
||||
genuine "no tools" 400 reports unsupported. Cached-input prices (migration 3) and cache-write
|
||||
/off-peak aware costs. Built-in embeddings (`server/ai/localEmbed.ts`, bge-small, default when
|
||||
nothing is chosen). Assistant turns run server-side independent of the browser (re-attach via
|
||||
`GET /api/ai/chat/:id/stream`, stop via `POST /api/ai/chat/:id/stop`); drafts tray in the
|
||||
sidebar/Today. Quiz start screen, navigator ring/legend fix, timer only for timed exams,
|
||||
7-point letter grades, numeric questions (migration 3 rebuilds `questions` for the new type;
|
||||
answers are compared numerically, units ignored, optional ± tolerance). Dialog footer padding
|
||||
(`safe-pb-3`), keyboard hints removed, small assistant button, full-width assistant page, model
|
||||
switcher and @-tagging. Editable generator instructions and built-in presets (builtin = 2 marks
|
||||
an edited built-in), separate chatbot import instructions. Copy buttons work over plain HTTP
|
||||
inside dialogs. Class/folder shares include processed documents.
|
||||
|
||||
Live DeepSeek (`deepseek-flash` only) checks passed: discovery, quiz generation at default and
|
||||
Max effort (numeric items produced, answer keys correct with thinking on), multi-step tool
|
||||
turns, follow-up turns, tagged quiz to flashcards, an answer finishing after disconnect; zero
|
||||
errors in Usage. Docker image builds; ONNX Runtime and the embedding model run in the container.
|
||||
The image grew to about 1.3 GB because of ONNX Runtime.
|
||||
|
||||
## Verification status
|
||||
|
||||
Baseline: 162 tests passed, TypeScript passed and production web/server builds passed.
|
||||
Added six regression tests. Full `npm run check` passes: **181 tests** (2026-11-12), TypeScript
|
||||
Added six regression tests. Full `npm run check` passes: **208 tests** (2026-11-15; 181 on 2026-11-12), TypeScript
|
||||
and both production builds. The Docker `test` stage runs the same 181 tests on Node 24. Tests were run with loopback access for the mock provider.
|
||||
|
||||
The earlier agent manually exercised quiz completion/results, flashcards, streak effects,
|
||||
|
|
@ -83,7 +107,7 @@ full offline administrator study is not implemented.
|
|||
2. With owner-supplied provider connections: verify live discovery, streamed chat, generation,
|
||||
OCR and task routing. No real-provider calls should be inferred from mock test results.
|
||||
3. Future optional work: approved ChatGPT account OAuth, more robust offline studying and
|
||||
semantic embeddings (current retrieval is lexical FTS5).
|
||||
(semantic embeddings were added on 2026-11-12, the built-in model on 2026-11-15).
|
||||
|
||||
## Resume safely
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue