From 0ff0f604c241c6cc78d5015ddf61618510f5dbed Mon Sep 17 00:00:00 2001 From: mARTin-B78 Date: Tue, 9 Jun 2026 17:00:58 +0200 Subject: [PATCH] stt: omit model field when empty (fixes Riva 400); settings: always-visible scrollbar (v2.0.3) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - stt._transcribe_remote: no longer falls back to "whisper-1" when engine.model is empty — omits the field entirely so Riva/NIM uses its default model instead of rejecting the request with HTTP 400 - gtksettings._page: switch vertical scroll policy to ALWAYS and disable overlay scrolling so the scrollbar is permanently visible, making it obvious when a tab has more content below the visible area Co-Authored-By: Claude Sonnet 4.6 --- linux/blitztext/__init__.py | 2 +- linux/blitztext/gtksettings.py | 3 ++- linux/blitztext/stt.py | 4 +++- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/linux/blitztext/__init__.py b/linux/blitztext/__init__.py index 2b53972..3f78482 100644 --- a/linux/blitztext/__init__.py +++ b/linux/blitztext/__init__.py @@ -6,4 +6,4 @@ counterpart to the macOS Blitztext menu bar app: it runs natively on the host (not in a container) so it can type into any application via xdotool. """ -__version__ = "2.0.2" +__version__ = "2.0.3" diff --git a/linux/blitztext/gtksettings.py b/linux/blitztext/gtksettings.py index 3f97b20..6dbe088 100644 --- a/linux/blitztext/gtksettings.py +++ b/linux/blitztext/gtksettings.py @@ -505,7 +505,8 @@ def _page(nb: Gtk.Notebook, title: str) -> Gtk.Box: outer = Gtk.Box(orientation=Gtk.Orientation.VERTICAL) nb.append_page(outer, Gtk.Label(label=title)) sw = Gtk.ScrolledWindow() - sw.set_policy(Gtk.PolicyType.NEVER, Gtk.PolicyType.AUTOMATIC) + sw.set_policy(Gtk.PolicyType.NEVER, Gtk.PolicyType.ALWAYS) + sw.set_overlay_scrolling(False) # always-visible scrollbar, not the overlay kind outer.pack_start(sw, True, True, 0) inner = Gtk.Box(orientation=Gtk.Orientation.VERTICAL, spacing=2) for m in ("top", "bottom", "start", "end"): diff --git a/linux/blitztext/stt.py b/linux/blitztext/stt.py index a3ce853..0f36fa7 100644 --- a/linux/blitztext/stt.py +++ b/linux/blitztext/stt.py @@ -138,7 +138,9 @@ def _transcribe_remote(engine: STTEngine, audio_path: Path, *, language: str, pr base = engine.url.rstrip("/") endpoint = base + "/audio/transcriptions" - fields = {"model": engine.model or "whisper-1", "response_format": "json"} + fields: dict[str, str] = {"response_format": "json"} + if engine.model: + fields["model"] = engine.model if language: fields["language"] = language if prompt: