Files
pagerite/scripts
LeoVasanko 911e28efbe scripts: uv-run shebang + executable; autodetect LLM api shape and language capabilities
Both new scripts carry the '#!/usr/bin/env -S uv run' shebang like
devserver.py and run directly (scripts/llm_translator.py ws://...).

llm_translator figures out the LLM-side details itself: the endpoint
shape is probed at startup (an ollama server answers /api/version and
gets its native /api/chat; anything else gets /v1/chat/completions) and
the announced languages follow the model family — qwen models announce
the full 39-language table, unknown models a conservative 12-language
set — with --langs/config as user overrides. The --api flag is gone;
CLI options stay high-level (url, --model, --base-url, --langs, --modes,
--api-key, --config for the sampling/cap details).

Verified live: detection logged 'ollama api', all 39 languages
announced, title + article jobs completed as before.
2026-09-21 03:51:56 +00:00
..
2026-09-15 05:20:57 +00:00