fix: RAM column shows "server" for remote engines (v2.03.05)

Remote engines run models server-side so local RSS never changes.
Show "server" instead of "—" to make the reason clear.
Local engines show measured MB; local already-loaded shows "—".

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
mARTin-B78 2026-06-09 22:34:41 +02:00
parent d40721dd3d
commit 05ccfbdeb4
2 changed files with 7 additions and 2 deletions

View File

@ -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.03.04"
__version__ = "2.03.05"

View File

@ -2228,7 +2228,12 @@ notebook.bt-nb tab:checked label {
# Strip scheme from URL for display brevity (http://192.168.1.1:8080 → 192.168.1.1:8080)
url_display = row.url.removeprefix("https://").removeprefix("http://").rstrip("/")
lang_display = stt.fmt_languages(row.languages)
ram_display = f"{row.ram_mb:.0f}" if row.ram_mb >= 1.0 else ""
if row.ram_mb >= 1.0:
ram_display = f"{row.ram_mb:.0f}"
elif row.url:
ram_display = "server" # model runs remotely — RAM not measurable here
else:
ram_display = "" # local model already loaded, no delta
self.bench_store.append([row.engine, url_display, row.model, row.device, row.best_for,
lang_display, f"{row.seconds:.2f}", acc, ram_display, out_friendly, tooltip])
# Persist result so Engines tab can show it