Patzer v7.20:新增法語和烏克蘭語、LM Studio 教練提供方,並修正教練的棋子交換判斷
Patzer v7.20: French and Ukrainian, LM Studio as a coach provider, and a coach that stops lying about trades
Patzer 發佈 v7.20.0,新增法語和烏克蘭語支援、LM Studio 教練提供方,並修正教練對棋子交換及棋局事實的錯誤描述。伺服器改由 chess.js 和 Stockfish 判定棋局事實,模型只負責轉述。產品現支援七種語言,並採用 MIT 授權。
Last week Patzer got single sign-on. This week it got two more languages, a third local LLM provider, and a coach that stopped telling my kids they won material when they traded a bishop for a knight.
v7.20.0 is out: https://github.com/SikamikanikoBG/patzer/releases/tag/v7.20.0
French and Ukrainian
@SaberGuirat and @OnyxOracle did the two big localizations. Not just the buttons and menus — the whole product speaks the language now: the Learn lessons (including kid mode), the move explanations, the hints, the Game Review. French piece names ("le cavalier prend le pion en e5", "petit roque"), Ukrainian with all four plural forms and declined piece names. The same guard that keeps the coach from praising a blunder runs in every language.
The setup screen's language picker is now a grid, so all seven languages (EN, BG, ES, DE, RU, FR, UK) fit. And the navigation no longer collapses to icons when it overflows — it scrolls sideways and keeps your current page in view.
LM Studio as a coach provider
If you run LM Studio instead of Ollama or vLLM, point Patzer at it in Admin → System (localhost:1234 by default, host.docker.internal from the container). Full OpenAI-compatible completions and JSON structured outputs: move explanations, threat analysis, game reviews, automatic model listing, connection test. @66ton99 wrote it, including the integration test suite.
The coach stopped lying about trades
This one is my favourite. Three facts the coach was handed wrong — and phrased confidently, because that's what LLMs do:
- Your own move was being reported as your opponent's reply. The engine line was three plies joined by commas with no idea whose move each one was, so your castling and their knight move arrived under one "the opponent answered".
- Every capture was reported as a material win.
Bxc6+ bxc6— a trade — came back as "it wins material". Now a capture only counts what's left after the cheapest recapture, and it's deliberately conservative: a square the opponent still covers at all is never called a win. - A quiet inaccuracy got an empty "why", and a small model filled the gap by picking a piece out of the board inventory and calling it undefended.
The fix is the architecture I keep coming back to: the server works out the facts with chess.js and Stockfish, the model only turns them into words. A wrong fact can't come out of the model's mouth any more confidently than a right one — because the model never gets to decide what's true.
Also in
- Nix: flake, nix-shell, direnv —
nix runfor the whole stack (Node 22 + Stockfish), configurable threads/hash (#90) - A Stockfish that stops answering no longer holds your CPU (#92)
- OIDC SSO shipped in the release (the 27.10 post covered it)
One container, your LAN, your model. MIT, seven languages.
docker run -d -p 8800:8800 -v patzer-data:/app/data --name patzer ghcr.io/SikamikanikoBG/patzer:latest
來源:DEV Community · dev.to