You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(alias): report the real reason for alias validation failures (#3111)
* fix(alias): report the real reason for alias validation failures
Alias handlers routed failures through create_model_error(), which rewrites its
message whenever the name is absent from the registry — always true for a new
alias — so every validation error reported "model not found" plus a list of
unrelated models instead of the actual cause.
The CLI compounded this: extract_server_error_message() only unwrapped
string-shaped error bodies, so object-shaped ones (what the server actually
emits) printed only "Request failed: <code>". That affected every CLI command
hitting a structured error, not just aliases.
Also corrects the Muse Glimmer post, which promised built-in availability on a
specific weekday and date; it now refers to the version instead.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
* fix(alias): classify internal alias failures as server errors
create_alias_error() hardcoded invalid_request_error, so the three 500 paths
reported a server-side failure as a client request error.
Reported by fl0rianr in review.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
Copy file name to clipboardExpand all lines: docs/news/muse-glimmer.html
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -536,7 +536,7 @@ <h3>Point llama.cpp at the latest release</h3>
536
536
537
537
<pclass="mg-note"><strong>Note:</strong> Set the same key to <code>builtin</code> to return to the llama.cpp version Lemonade ships and tests, for example <code>lemonade config set llamacpp.vulkan_bin=builtin</code>.</p>
538
538
539
-
<pclass="mg-note"><strong>Note:</strong> Muse Glimmer ships as a built-in model in the regular Wednesday Lemonade release on August 12, so this step becomes optional then.</p>
539
+
<pclass="mg-note"><strong>Note:</strong> Muse Glimmer ships as a built-in model in Lemonade v11.6.0, so this step becomes optional once you update.</p>
if (canonical == alias || canonical == "user." + alias || canonical == "builtin." + alias) {
5845
5859
res.status = 409;
5846
-
res.set_content(create_model_error(alias, "Cannot create alias '" + alias + "': Name conflicts with an existing canonical model").dump(), "application/json");
5860
+
res.set_content(create_alias_error("Cannot create alias '" + alias + "': Name conflicts with an existing canonical model", "alias_conflict").dump(), "application/json");
0 commit comments