launch: the Pictures screen says plainly that this Terminal cannot set up the picture reader yet

This commit is contained in:
Niko1221 committed 2026-10-17 11:52:23 +02:00
1 parent 47e2343b1b
commit 78fc321cd3
2 files changed
+7 -2

No files matched your search

+6 -2
View File
@@ -754,7 +754,7 @@ class PicturesScreen(Base):
self.supported = True if r is None else r.images
items = [Item(["No pictures"], key="off")]
if self.supported:
items.append(Item(["Yes, read pictures"], key="on"))
items.append(Item(["Yes, read pictures" + ("" if S.TERMINAL_SETS_UP_PICTURES else " (this Terminal cannot set it up yet)")], key="on"))
else:
items.append(Item([Cell("Yes, read pictures: not available for this model yet", MUTE)], key="on", enabled=False))
sel = 1 if s.vision != "off" and self.supported else 0
@@ -768,7 +768,11 @@ class PicturesScreen(Base):
if vram < 24 else "a 0.9 GB download, and about 1.4 GB of graphics memory kept free for the picture reader (text is a few % slower).")
if not self.supported:
return Text("This model cannot read pictures yet, so pictures stay off. Pick another model if you need them.", style=WARN)
return Text("Pictures add " + extra + " Say No if you only chat in text.", style=MUTE)
out = Text("Pictures add " + extra + " Say No if you only chat in text.", style=MUTE)
if not S.TERMINAL_SETS_UP_PICTURES:
out.append("\nHeads up: the model installer in this Terminal does not set up the picture reader yet (it is not part of the first release), "
"so the model will answer text only. Your choice is saved for when it does.", style=WARN)
return out
def commit(self) -> None:
self.ctx.settings.vision = self.menu().current.key
+1
View File
@@ -25,6 +25,7 @@ ACCESS_WORDS = {"local": "This computer only", "lan": "My local network", "cloud
"tailscale": "Tailscale"}
TUNE_MODES = ("quick", "thorough", "skip")
VISION_MODES = ("off", "on", "gpu", "cpu")
TERMINAL_SETS_UP_PICTURES = False # setup.py in control mode says "images are not part of the app's first release": flip when it does
KV_MODES = ("int8", "q4_0", "k8v4", "fp16")
DEFAULT_PORT = 8080