Skip to content

The all-in-one local AI studio for your desktop: chat, image and video generation and a coding agent in one free, open source app. Windows and Linux. No Docker, no terminal, no cloud required.

fix(cloud): stop hiding Agent and Code on the unrestricted models

purple82f0d3ffbf01
diff --git a/src/api/tool-capability.ts b/src/api/tool-capability.ts
index b0df61bb..4809771d 100644
--- a/src/api/tool-capability.ts
+++ b/src/api/tool-capability.ts
@@ -16,7 +16,13 @@
* outcomes, never a synthetic call.
*/
-const STORAGE_KEY = 'lu-tool-capability-v1'
+// v2 (2026-07-29): LU Cloud used to 405 on a `tools` payload for the
+// unrestricted models, so installs in the wild carry cached negatives for
+// Hermes, Euryale, MythoMax and friends. The server now serves those models
+// through its prompt transport, making every one of those entries a lie that
+// would keep Agent and Code greyed out until the 24h TTL expired. Bumping the
+// key retires them the moment the user updates.
+const STORAGE_KEY = 'lu-tool-capability-v2'
/** How long a cached negative result is trusted before we re-try the model. */
const NEGATIVE_TTL_MS = 24 * 60 * 60 * 1000
diff --git a/src/components/models/ModelSelector.tsx b/src/components/models/ModelSelector.tsx
index a34a198e..009d6ad9 100644
--- a/src/components/models/ModelSelector.tsx
+++ b/src/components/models/ModelSelector.tsx
@@ -825,12 +825,14 @@ export function ModelSelector({ openUpward = false, surface = 'chat' }: ModelSel
)}
{/* 2.5.8 — tool-calling capability at a glance. Ban =
no function calling, so Agent/Code can't use it:
- either the server declared it (LU Cloud
- supports_tools === false — Hermes 3, Euryale,
- MythoMax, Llama-4-Maverick, …) or we've SEEN it
- reject tools at runtime (cloud 405 / ollama "does
- not support tools"). Wrench = tool-capable. Text
- models only. */}
+ either the server declared it (supports_tools ===
+ false) or we've SEEN it reject tools at runtime
+ (cloud 405 / ollama "does not support tools").
+ Wrench = tool-capable. Text models only.
+ Since 2026-07-29 the LU Cloud catalogue is
+ wrench across the board: the unrestricted models
+ are served through the proxy's prompt transport
+ rather than being flagged unsupported. */}
{model.type === 'text' && (
(getToolCapability(model.name) === 'unsupported' || model.supportsTools === false) ? (
<span
diff --git a/src/lib/tool-support.ts b/src/lib/tool-support.ts
index 84038ab1..d13cd700 100644
--- a/src/lib/tool-support.ts
+++ b/src/lib/tool-support.ts
@@ -7,9 +7,11 @@
*
* 1. the reactive cache (api/tool-capability) — a run PROVED the model
* rejects a `tools` payload (cloud 405, ollama "does not support tools")
- * 2. the server's own answer — LU Cloud `/models` returns `supports_tools`,
- * false for the roleplay and story models it hosts (Hermes 3, Euryale,
- * MythoMax, Llama 4 Maverick, …)
+ * 2. the server's own answer — LU Cloud `/models` returns `supports_tools`.
+ * Since 2026-07-29 that is true for the whole catalogue: the proxy serves
+ * the models DeepInfra refuses a `tools` payload for (Hermes 3, Euryale,
+ * MythoMax, Llama 4 Maverick) through a prompt translation instead, so
+ * they run Agent and Code like anything else.
* 3. the family-name heuristic in model-compatibility
*
* AgentModeToggle already layered 1 > 2 > 3 correctly. The chat dropdown used
@@ -51,9 +53,10 @@ export function resolveToolSupport({ name, supportsTools }: ToolSupportInput): T
// do not put `tools` in the request. For a LOCAL model that is not the end of
// it — the XML path is pure prompting and often still works, which is how
// small Ollama models have driven the agent since 2.5.3. For a HOSTED model
- // it is the end of it: LU Cloud sets the flag on its story/roleplay models,
- // which will happily narrate a tool call instead of emitting one, and the
- // user pays per token to find that out.
+ // it still is: LU Cloud now does its own prompt translation server-side and
+ // reports `supports_tools: true` for everything it can serve that way, so a
+ // `false` from LU Cloud means the model genuinely cannot be driven, and
+ // retrying it client-side would only burn the user's tokens.
if (proven === 'unsupported' || supportsTools === false) {
return provider === 'lu-cloud' ? 'none' : 'hermes'
}