Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: HKUDS/DeepTutor
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v1.2.5
Choose a base ref
...
head repository: HKUDS/DeepTutor
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v1.3.0
Choose a head ref
  • 4 commits
  • 123 files changed
  • 3 contributors

Commits on Apr 26, 2026

  1. fix: server startup on Windows + missing runtime deps

    Two independent issues that block `python scripts/start_web.py` after a
    clean install on Windows:
    
    1. UnicodeDecodeError when streaming subprocess output
    
       `_spawn()` opened the backend / frontend stdout pipe with `text=True`
       but no explicit encoding. On Windows this defaults to the system
       ANSI codepage (e.g. `gbk` on Chinese Windows), which raises
       `UnicodeDecodeError` as soon as the child process emits a UTF-8 byte.
    
       Fix: pin `encoding="utf-8"` and `errors="replace"` so any locale
       produces clean, lossless output.
    
    2. Missing runtime dependencies in requirements/server.txt
    
       `deeptutor/services/llm/provider_core/__init__.py` unconditionally
       imports `AnthropicProvider`, `OpenAICompatProvider`, and
       `OpenAIResponses`, which in turn import:
    
         - `loguru`        (provider_core/base.py, openai_codex_provider.py,
                            openai_responses/parsing.py)
         - `json_repair`   (anthropic_provider.py, openai_compat_provider.py,
                            openai_responses/parsing.py)
    
       These are declared only in `requirements/tutorbot.txt`, so
       `pip install -r requirements/server.txt && pip install -e .` followed
       by `python scripts/start_web.py` crashes with `ModuleNotFoundError`
       before the API server can serve a single request.
    
       Fix: declare both packages in `server.txt` with the same version
       bounds used by `tutorbot.txt`.
    
    Reproduced and verified on Windows 11 + Python 3.12 + a fresh venv.
    jonathanzhan1975 committed Apr 26, 2026
    Configuration menu
    Copy the full SHA
    8e1ceba View commit details
    Browse the repository at this point in the history
  2. fix: missing pip

    pancacake committed Apr 26, 2026
    Configuration menu
    Copy the full SHA
    162a3f9 View commit details
    Browse the repository at this point in the history

Commits on Apr 27, 2026

  1. Merge pull request #391 from jonathanzhan1975/fix/server-deps-and-utf…

    …8-encoding
    
    fix: server startup on Windows + missing runtime deps in server.txt
    pancacake authored Apr 27, 2026
    Configuration menu
    Copy the full SHA
    8594b46 View commit details
    Browse the repository at this point in the history
  2. chore: prepare v1.3.0 release

    Made-with: Cursor
    pancacake committed Apr 27, 2026
    Configuration menu
    Copy the full SHA
    7fce54d View commit details
    Browse the repository at this point in the history
Loading