diff --git a/CHANGELOG.md b/CHANGELOG.md index 9d936c0..369db9f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -16,6 +16,29 @@ for 1.0.0 have something to be assembled from. ## Unreleased +## 1.3.2 + +- Fixed: **the model page could not save anything below the reasoning efforts**, + and had not been able to since 1.3.0. "Save changes" did nothing at all — not + slowly, not with an error, simply nothing — so the description, the system + prompt, every capability and tool switch, and the whole availability card + (enabled, pinned, available to everyone, groups) silently would not take. The + fields above it, including the display name and the reasoning efforts, saved + normally, which is what made it look like it worked. + + Worse, the **Detect from the endpoint** button had stopped detecting. It + submitted the page as an ordinary save instead — a save carrying only the top + half of the form, so everything below took its empty default: it would have + cleared that model's description and system prompt and switched the model off + with all of its tools disabled. If you pressed it, check that model's page. + + The cause was one HTML rule: a form inside another form is not allowed, and + rather than complaining, a browser discards the inner tag and lets the closing + tag end the *outer* form. Everything after that point was in no form, and a + button in no form does nothing. Nothing in the markup looks wrong, and no test + that posts to a route can see it — so the fix comes with one that reads every + page the way a browser parses it. + ## 1.3.1 - Fixed: **updating to 1.2.0 or later broke every page that lists models**, with diff --git a/src/lembas/__init__.py b/src/lembas/__init__.py index 508d50f..954e169 100644 --- a/src/lembas/__init__.py +++ b/src/lembas/__init__.py @@ -1,3 +1,3 @@ """LLeMbas - a Middle-earth themed web UI for OpenAI-compatible LLM endpoints.""" -__version__ = "1.3.1" +__version__ = "1.3.2" diff --git a/src/lembas/web/templates/admin/model_detail.html b/src/lembas/web/templates/admin/model_detail.html index 29c9e66..291a0c0 100644 --- a/src/lembas/web/templates/admin/model_detail.html +++ b/src/lembas/web/templates/admin/model_detail.html @@ -69,6 +69,12 @@
+{# Empty, hidden, and outside every other form: the Detect button further down + is associated with it by `form="detect-efforts"`. It carries no fields on + purpose — detection asks the endpoint and needs nothing from this page. #} + +