Skip to content

Dodaios is an open-source agent OS for your desktop: it runs your coding agents, browser and apps by voice or chat, on your own machine. Formerly Personal Jarvis.

feat(local-models): the section is whole — every panel wired and translated, and Voice is its own slot

rubenluetke10-beepb4803cd7bd64
diff --git a/jarvis/brain/ollama_roles.py b/jarvis/brain/ollama_roles.py
index 97f7db6edd..b290c33549 100644
--- a/jarvis/brain/ollama_roles.py
+++ b/jarvis/brain/ollama_roles.py
@@ -1,9 +1,10 @@
"""The model slots Ollama fills, read and written from ONE place.
-Today the local brain is spread over four config keys the user never sees
-side by side: the chat model, the tool/screen model, the deep model and the
-wiki's embedding model — plus three read-only consumers (the managed voice
-server, the quick ack, dictation polish) that follow or pin their own tag.
+Today the local brain is spread over five config keys the user never sees
+side by side: the chat model, the voice model (the managed voice server's
+brain, baked into its launch command), the tool/screen model, the deep model
+and the wiki's embedding model — plus two read-only consumers (the quick ack,
+dictation polish) that pin their own tag.
This module names every slot as a :class:`RoleSpec`, reads its current pick
from a loaded config, judges which INSTALLED downloads qualify for it (by the
capabilities ``/api/show`` declares) and points at the shortlist's pick for
@@ -76,6 +77,14 @@ ROLES: tuple[RoleSpec, ...] = (
recommended=("tools",),
pull_role="chat",
),
+ RoleSpec(
+ id="voice",
+ label_key="local_models.role_voice",
+ config_key="brain.providers.local-realtime.launch_command",
+ required=("completion",),
+ recommended=("tools",),
+ pull_role="chat",
+ ),
RoleSpec(
id="tools_screen",
label_key="local_models.role_tools_screen",
@@ -100,20 +109,8 @@ ROLES: tuple[RoleSpec, ...] = (
recommended=(),
pull_role="embedding",
),
- # Read-only consumers. The managed voice server prefers the chat pick
- # (``preflight._preferred_brain_model`` reads the same key) and keeps its
- # own ``-voice-8k`` alias; the ack and polish models have their own
- # pickers on their own cards.
- RoleSpec(
- id="voice",
- label_key="local_models.role_voice",
- config_key="brain.providers.ollama.model",
- required=("completion",),
- recommended=("tools",),
- pull_role="chat",
- writable=False,
- advanced=True,
- ),
+ # Read-only consumers: the ack and polish models have their own pickers
+ # on their own cards, so the rows only say which tag they follow.
RoleSpec(
id="ack",
label_key="local_models.role_ack",
@@ -186,8 +183,10 @@ def current_pick(cfg: Any, role_id: str) -> tuple[str, str]:
if cfg is None:
return "", ""
provider = _ollama_provider(cfg)
- if role_id in ("chat", "voice"):
+ if role_id == "chat":
return _str(getattr(provider, "model", "")), ""
+ if role_id == "voice":
+ return _voice_pick(cfg)
if role_id == "tools_screen":
return (
_str(getattr(provider, "tool_model", "")) or _str(getattr(provider, "cu_model", "")),
@@ -216,6 +215,34 @@ def current_pick(cfg: Any, role_id: str) -> tuple[str, str]:
raise ValueError(f"Unknown role '{role_id}'.")
+def _voice_provider(cfg: Any) -> Any:
+ providers = getattr(getattr(cfg, "brain", None), "providers", None) or {}
+ return providers.get("local-realtime") if isinstance(providers, dict) else None
+
+
+def _voice_pick(cfg: Any) -> tuple[str, str]:
+ """The managed voice server's brain: the ``--model_name`` of its command.
+
+ A voice call and a typed chat are different jobs (a call wants a small,
+ fast model; a chat can afford a stronger one), so the voice brain has its
+ own slot. It is not a config field of its own — the server bakes it into
+ the launch command the installer wrote — hence the parse here, with the
+ ``-voice-8k`` context alias folded back to the base tag the user picked.
+ """
+ command = _str(getattr(_voice_provider(cfg), "launch_command", ""))
+ if not command:
+ return "", "The managed voice server is not installed; a call answers with the Chat model."
+ from jarvis.realtime.local_server.supervisor import ( # lazy: off the read path
+ _brain_endpoint,
+ _voice_context_models,
+ )
+
+ model, _base = _brain_endpoint(command)
+ if not model:
+ return "", "The voice server's launch command names no brain model."
+ return _voice_context_models(model)[0], ""
+
+
def qualifying_models(spec: RoleSpec, models: list[OllamaModelInfo]) -> tuple[str, ...]:
"""Installed tags that declare every capability ``spec`` requires.
@@ -320,6 +347,25 @@ def set_role(role_id: str, model: str, *, cfg: Any = None) -> dict[str, str]:
config_writer.set_brain_provider_model("ollama", model=tag)
if provider is not None:
provider.model = tag
+ elif spec.id == "voice":
+ if not tag:
+ raise ValueError(
+ "The voice role needs a model name; the voice server cannot discover one."
+ )
+ voice = _voice_provider(cfg)
+ command = _str(getattr(voice, "launch_command", ""))
+ if not command or "--model_name" not in command:
+ raise ValueError(
+ "Install the managed voice server first; until then a call "
+ "answers with the Chat model."
+ )
+ # The same writer the voice card uses: rewrites ONLY the model flag of
+ # the persisted command, never a bring-your-own command.
+ config_writer.update_local_realtime_launch_model(tag)
+ if voice is not None:
+ from jarvis.realtime.local_server.supervisor import _replace_brain_model
+
+ voice.launch_command = _replace_brain_model(command, tag)
elif spec.id == "tools_screen":
# Same pair the cu-model setter writes: canonical + legacy key.
config_writer.set_brain_provider_model("ollama", tool_model=tag, cu_model=tag)
diff --git a/jarvis/ui/web/frontend/src/components/providers/LocalModelDownloadPanel.test.tsx b/jarvis/ui/web/frontend/src/components/providers/LocalModelDownloadPanel.test.tsx
index 361c8b19de..5c23500565 100644
--- a/jarvis/ui/web/frontend/src/components/providers/LocalModelDownloadPanel.test.tsx
+++ b/jarvis/ui/web/frontend/src/components/providers/LocalModelDownloadPanel.test.tsx
@@ -13,9 +13,15 @@
* - a started download reports real progress instead of freezing on a spinner.
*/
import { afterEach, describe, expect, it, vi } from "vitest";
-import { cleanup, fireEvent, render, screen, waitFor } from "@testing-library/react";
-
-import { AuthWidget } from "@/components/providers/ProviderTierSection";
+import {
+ cleanup,
+ fireEvent,
+ render,
+ screen,
+ waitFor,
+} from "@testing-library/react";
+
+import { LocalModelDownloadPanel } from "@/components/providers/ProviderTierSection";
import type { ProviderDescriptor } from "@/hooks/useProviders";
vi.mock("@/i18n", () => ({
@@ -26,10 +32,12 @@ vi.mock("@/i18n", () => ({
"apikeys_model_pull.size": "~{0} GB",
"apikeys_model_pull.installed": "Installed",
"apikeys_model_pull.download": "Download",
- "apikeys_model_pull.custom_placeholder": "Search the library, or type an exact name…",
+ "apikeys_model_pull.custom_placeholder":
+ "Search the library, or type an exact name…",
"apikeys_model_pull.library_title": "Every model in the Ollama library",
"apikeys_model_pull.library_searching": "Searching the library…",
- "apikeys_model_pull.library_no_results": "No models found for that search.",
+ "apikeys_model_pull.library_no_results":
+ "No models found for that search.",
"apikeys_model_pull.library_loading_versions": "Loading versions…",
"apikeys_model_pull.library_hosted": "Hosted",
"apikeys_model_pull.library_context": "{0} context",
@@ -97,17 +105,21 @@ const CATALOG = {
],
};
-function installFetchMock(handler: (url: string, init?: RequestInit) => unknown) {
- const fetchMock = vi.fn(async (input: RequestInfo | URL, init?: RequestInit) => {
- const body = handler(String(input), init);
- return {
- ok: true,
- status: 200,
- statusText: "OK",
- json: async () => body,
- text: async () => JSON.stringify(body),
- } as Response;
- });
+function installFetchMock(
+ handler: (url: string, init?: RequestInit) => unknown,
+) {
+ const fetchMock = vi.fn(
+ async (input: RequestInfo | URL, init?: RequestInit) => {
+ const body = handler(String(input), init);
+ return {
+ ok: true,
+ status: 200,
+ statusText: "OK",
+ json: async () => body,
+ text: async () => JSON.stringify(body),
+ } as Response;
+ },
+ );
(globalThis as unknown as { fetch: typeof fetch }).fetch =
fetchMock as unknown as typeof fetch;
return fetchMock;
@@ -121,22 +133,32 @@ afterEach(() => {
describe("local model download panel", () => {
it("renders nothing on a card whose server has no download API", async () => {
const fetchMock = installFetchMock(() => CATALOG);
- const cloudCard = { ...PULL_CARD, id: "openai", supports_model_pull: false };
-
- render(<AuthWidget descriptor={cloudCard} onChanged={() => {}} />);
+ const cloudCard = {
+ ...PULL_CARD,
+ id: "openai",
+ supports_model_pull: false,
+ };
+
+ render(
+ <LocalModelDownloadPanel descriptor={cloudCard} onChanged={() => {}} />,
+ );
expect(screen.queryByText("Models on this machine")).toBeNull();
// And it must not even ASK: a cloud card firing this request would get a
// 400 on every render of the provider list.
expect(
- fetchMock.mock.calls.filter((c) => String(c[0]).includes("pullable-models")),
+ fetchMock.mock.calls.filter((c) =>
+ String(c[0]).includes("pullable-models"),
+ ),
).toHaveLength(0);
});
it("shows what the server reports: sizes, memory, and what is already there", async () => {
installFetchMock(() => CATALOG);
- render(<AuthWidget descriptor={PULL_CARD} onChanged={() => {}} />);
+ render(
+ <LocalModelDownloadPanel descriptor={PULL_CARD} onChanged={() => {}} />,
+ );
await waitFor(() => expect(screen.getByText("Qwen 3 VL")).toBeTruthy());
expect(screen.getByText("32 GB RAM")).toBeTruthy();
@@ -147,10 +169,14 @@ describe("local model download panel", () => {
it("shows a tight fit as a caution, never as a blocked download", async () => {
installFetchMock(() => CATALOG);
- render(<AuthWidget descriptor={PULL_CARD} onChanged={() => {}} />);
+ render(
+ <LocalModelDownloadPanel descriptor={PULL_CARD} onChanged={() => {}} />,
+ );
await waitFor(() =>
- expect(screen.getByText("Needs about 8 GB with 8 GB installed.")).toBeTruthy(),
+ expect(
+ screen.getByText("Needs about 8 GB with 8 GB installed."),
+ ).toBeTruthy(),
);
const buttons = screen.getAllByRole("button", { name: /download/i });
expect(buttons.some((b) => !(b as HTMLButtonElement).disabled)).toBe(true);
@@ -174,7 +200,9 @@ describe("local model download panel", () => {
return CATALOG;
});
- render(<AuthWidget descriptor={PULL_CARD} onChanged={() => {}} />);
+ render(
+ <LocalModelDownloadPanel descriptor={PULL_CARD} onChanged={() => {}} />,
+ );
await waitFor(() => expect(screen.getByText("Qwen 3 VL")).toBeTruthy());
const download = screen
@@ -182,8 +210,12 @@ describe("local model download panel", () => {
.find((b) => !(b as HTMLButtonElement).disabled)!;
fireEvent.click(download);
- await waitFor(() => expect(screen.getByText(/qwen3-vl: Starting/)).toBeTruthy());
- expect(calls.some((u) => u.endsWith("/api/providers/ollama/pull"))).toBe(true);
+ await waitFor(() =>
+ expect(screen.getByText(/qwen3-vl: Starting/)).toBeTruthy(),
+ );
+ expect(calls.some((u) => u.endsWith("/api/providers/ollama/pull"))).toBe(
+ true,
+ );
});
it("keeps the shortlist visible when the server is down, with its reason", async () => {
@@ -193,7 +225,9 @@ describe("local model download panel", () => {
message: "Ollama did not answer at http://localhost:11434.",
}));
- render(<AuthWidget descriptor={PULL_CARD} onChanged={() => {}} />);
+ render(
+ <LocalModelDownloadPanel descriptor={PULL_CARD} onChanged={() => {}} />,
+ );
await waitFor(() =>
expect(screen.getByText(/Ollama did not answer/)).toBeTruthy(),
@@ -284,13 +318,17 @@ describe("local model download panel — hardware-aware ranking", () => {
it("marks the server's pick for this machine, one per role", async () => {
installFetchMock(() => RANKED_CATALOG);
- render(<AuthWidget descriptor={PULL_CARD} onChanged={() => {}} />);
+ render(
+ <LocalModelDownloadPanel descriptor={PULL_CARD} onChanged={() => {}} />,
+ );
await waitFor(() => expect(screen.getByText("GPT-OSS 20B")).toBeTruthy());
const recommended = document.querySelectorAll('[data-recommended="true"]');
expect(recommended).toHaveLength(2);
expect(
- screen.getByTestId("model-pull-row-gpt-oss:20b").getAttribute("data-recommended"),
+ screen
+ .getByTestId("model-pull-row-gpt-oss:20b")
+ .getAttribute("data-recommended"),
).toBe("true");
// The biggest model is NOT the pick — it does not fit this card.
expect(
@@ -303,10 +341,16 @@ describe("local model download panel — hardware-aware ranking", () => {
it("names the graphics memory the verdicts were judged against", async () => {
installFetchMock(() => RANKED_CATALOG);
- render(<AuthWidget descriptor={PULL_CARD} onChanged={() => {}} />);
+ render(
+ <LocalModelDownloadPanel descriptor={PULL_CARD} onChanged={() => {}} />,
+ );
- await waitFor(() => expect(screen.getByTestId("model-pull-hardware")).toBeTruthy());
- expect(screen.getByTestId("model-pull-hardware").textContent).toContain("24");
+ await waitFor(() =>
+ expect(screen.getByTestId("model-pull-hardware")).toBeTruthy(),
+ );
+ expect(screen.getByTestId("model-pull-hardware").textContent).toContain(
+ "24",
+ );
});
it("falls back to the RAM figure when no accelerator could be read", async () => {
@@ -316,10 +360,16 @@ describe("local model download panel — hardware-aware ranking", () => {
accelerator_source: "none",
}));
- render(<AuthWidget descriptor={PULL_CARD} onChanged={() => {}} />);
+ render(
+ <LocalModelDownloadPanel descriptor={PULL_CARD} onChanged={() => {}} />,
+ );
- await waitFor(() => expect(screen.getByTestId("model-pull-hardware")).toBeTruthy());
- expect(screen.getByTestId("model-pull-hardware").textContent).toContain("64");
+ await waitFor(() =>
+ expect(screen.getByTestId("model-pull-hardware")).toBeTruthy(),
+ );
+ expect(screen.getByTestId("model-pull-hardware").textContent).toContain(
+ "64",
+ );
});
it("keeps working on a payload with no roles at all", async () => {
@@ -327,10 +377,14 @@ describe("local model download panel — hardware-aware ranking", () => {
// before roles existed. No empty headings, no crash.
installFetchMock(() => CATALOG);
- render(<AuthWidget descriptor={PULL_CARD} onChanged={() => {}} />);
+ render(
+ <LocalModelDownloadPanel descriptor={PULL_CARD} onChanged={() => {}} />,
+ );
await waitFor(() => expect(screen.getByText("Qwen 3 VL")).toBeTruthy());
- expect(document.querySelectorAll('[data-recommended="true"]')).toHaveLength(0);
+ expect(document.querySelectorAll('[data-recommended="true"]')).toHaveLength(
+ 0,
+ );
});
});
@@ -414,7 +468,8 @@ function libraryFetchMock(overrides: Record<string, unknown> = {}) {
}
if (url.includes("/library/search")) return LIBRARY_SEARCH;
if (url.includes("/tags")) return LIBRARY_TAGS;
- if (url.endsWith("/pull")) return { state: "running", model: "x", message: "Starting…" };
+ if (url.endsWith("/pull"))
+ return { state: "running", model: "x", message: "Starting…" };
return CATALOG;
});
return calls;
@@ -429,10 +484,14 @@ describe("local model download panel — browsing the public library", () => {
// been delivered, so the heading is part of the feature, not decoration.
libraryFetchMock();
- render(<AuthWidget descriptor={PULL_CARD} onChanged={() => {}} />);
+ render(
+ <LocalModelDownloadPanel descriptor={PULL_CARD} onChanged={() => {}} />,
+ );
await waitFor(() =>
- expect(screen.getByText("Every model in the Ollama library")).toBeTruthy(),
+ expect(
+ screen.getByText("Every model in the Ollama library"),
+ ).toBeTruthy(),
);
});
@@ -441,7 +500,9 @@ describe("local model download panel — browsing the public library", () => {
// the catalog once per card on every render of the settings view.
const calls = libraryFetchMock();
- render(<AuthWidget descriptor={PULL_CARD} onChanged={() => {}} />);
+ render(
+ <LocalModelDownloadPanel descriptor={PULL_CARD} onChanged={() => {}} />,
+ );
await waitFor(() => expect(screen.getByText("Qwen 3 VL")).toBeTruthy());
expect(calls.some((u) => u.includes("/library/search"))).toBe(false);
@@ -450,7 +511,9 @@ describe("local model download panel — browsing the public library", () => {
it("searches the catalog and shows what it found", async () => {
libraryFetchMock();
- render(<AuthWidget descriptor={PULL_CARD} onChanged={() => {}} />);
+ render(
+ <LocalModelDownloadPanel descriptor={PULL_CARD} onChanged={() => {}} />,
+ );
await waitFor(() => expect(screen.getByText("Qwen 3 VL")).toBeTruthy());
fireEvent.change(screen.getByPlaceholderText(/Search the library/), {
@@ -469,7 +532,9 @@ describe("local model download panel — browsing the public library", () => {
it("opens a model into its real published versions, with sizes", async () => {
libraryFetchMock();
- render(<AuthWidget descriptor={PULL_CARD} onChanged={() => {}} />);
+ render(
+ <LocalModelDownloadPanel descriptor={PULL_CARD} onChanged={() => {}} />,
+ );
await waitFor(() => expect(screen.getByText("Qwen 3 VL")).toBeTruthy());
fireEvent.change(screen.getByPlaceholderText(/Search the library/), {
target: { value: "qwen" },
@@ -485,14 +550,20 @@ describe("local model download panel — browsing the public library", () => {
expect(screen.getByTestId("library-tag-qwen3.5:9b")).toBeTruthy(),
);
// The whole point of the tag list: sizes differ by an order of magnitude.
- expect(screen.getByTestId("library-tag-qwen3.5:122b").textContent).toContain("65.4");
- expect(screen.getByTestId("library-tag-qwen3.5:9b").textContent).toContain("6.6");
+ expect(
+ screen.getByTestId("library-tag-qwen3.5:122b").textContent,
+ ).toContain("65.4");
+ expect(screen.getByTestId("library-tag-qwen3.5:9b").textContent).toContain(
+ "6.6",
+ );
});
it("downloads the exact tag the user picked, not the bare name", async () => {
const calls = libraryFetchMock();
- render(<AuthWidget descriptor={PULL_CARD} onChanged={() => {}} />);
+ render(
+ <LocalModelDownloadPanel descriptor={PULL_CARD} onChanged={() => {}} />,
+ );
await waitFor(() => expect(screen.getByText("Qwen 3 VL")).toBeTruthy());
fireEvent.change(screen.getByPlaceholderText(/Search the library/), {
target: { value: "qwen" },
@@ -510,14 +581,18 @@ describe("local model download panel — browsing the public library", () => {
fireEvent.click(row.querySelector("button")!);
await waitFor(() =>
- expect(calls.some((u) => u.endsWith("/api/providers/ollama/pull"))).toBe(true),
+ expect(calls.some((u) => u.endsWith("/api/providers/ollama/pull"))).toBe(
+ true,
+ ),
);
});
it("offers no download for a hosted-only tag", async () => {
libraryFetchMock();
- render(<AuthWidget descriptor={PULL_CARD} onChanged={() => {}} />);
+ render(
+ <LocalModelDownloadPanel descriptor={PULL_CARD} onChanged={() => {}} />,
+ );
await waitFor(() => expect(screen.getByText("Qwen 3 VL")).toBeTruthy());
fireEvent.change(screen.getByPlaceholderText(/Search the library/), {
target: { value: "qwen" },
@@ -547,20 +622,29 @@ describe("local model download panel — browsing the public library", () => {
},
});
- render(<AuthWidget descriptor={PULL_CARD} onChanged={() => {}} />);
+ render(
+ <LocalModelDownloadPanel descriptor={PULL_CARD} onChanged={() => {}} />,
+ );
await waitFor(() => expect(screen.getByText("Qwen 3 VL")).toBeTruthy());
const field = screen.getByPlaceholderText(/Search the library/);
fireEvent.change(field, { target: { value: "mistral" } });
- await waitFor(() => expect(screen.getByText(/did not answer/)).toBeTruthy(), {
- timeout: 3000,
- });
+ await waitFor(
+ () => expect(screen.getByText(/did not answer/)).toBeTruthy(),
+ {
+ timeout: 3000,
+ },
+ );
- const downloadButtons = screen.getAllByRole("button", { name: /download/i });
+ const downloadButtons = screen.getAllByRole("button", {
+ name: /download/i,
+ });
fireEvent.click(downloadButtons[downloadButtons.length - 1]);
await waitFor(() =>
- expect(calls.some((u) => u.endsWith("/api/providers/ollama/pull"))).toBe(true),
+ expect(calls.some((u) => u.endsWith("/api/providers/ollama/pull"))).toBe(
+ true,
+ ),
);
});
});
diff --git a/jarvis/ui/web/frontend/src/i18n/local-models-i18n-parity.test.ts b/jarvis/ui/web/frontend/src/i18n/local-models-i18n-parity.test.ts
new file mode 100644
index 0000000000..8e953e3b97
--- /dev/null
+++ b/jarvis/ui/web/frontend/src/i18n/local-models-i18n-parity.test.ts
@@ -0,0 +1,74 @@
+/**
+ * Every `local_models.*` key a Local models panel asks for must exist in all
+ * three locale chunks — and de/es must carry exactly the keys en carries.
+ * The keys are read from the source files themselves, so a panel that adds a
+ * string without its translations fails here, not in front of a user.
+ */
+import { readFileSync, readdirSync } from "node:fs";
+import { join } from "node:path";
+import { describe, expect, it } from "vitest";
+import en from "./locales/local_models/en.json";
+import de from "./locales/local_models/de.json";
+import es from "./locales/local_models/es.json";
+
+function flatten(obj: Record<string, unknown>, prefix = ""): string[] {
+ const out: string[] = [];
+ for (const [k, v] of Object.entries(obj)) {
+ const key = prefix ? `${prefix}.${k}` : k;
+ if (v && typeof v === "object" && !Array.isArray(v)) {
+ out.push(...flatten(v as Record<string, unknown>, key));
+ } else {
+ out.push(key);
+ }
+ }
+ return out;
+}
+
+const keysFor = (loc: Record<string, unknown>): Set<string> =>
+ new Set(flatten(loc));
+
+const SRC = join(__dirname, "..");
+const PANEL_DIR = join(SRC, "views", "local-models");
+const SOURCE_FILES = [
+ join(SRC, "views", "LocalModelsView.tsx"),
+ ...readdirSync(PANEL_DIR)
+ .filter((f) => f.endsWith(".tsx") && !f.endsWith(".test.tsx"))
+ .map((f) => join(PANEL_DIR, f)),
+];
+
+/** Literal keys only; template keys (`local_models.tune.${key}`) are covered
+ * by the parity check between the locales. */
+function usedKeys(): Set<string> {
+ const found = new Set<string>();
+ for (const file of SOURCE_FILES) {
+ const text = readFileSync(file, "utf8");
+ for (const m of text.matchAll(/"(local_models\.[a-z0-9_.]+)"/g))
+ found.add(m[1]);
+ }
+ return found;
+}
+
+describe("local models i18n parity", () => {
+ it("en defines a non-trivial local_models key set", () => {
+ expect(keysFor(en as Record<string, unknown>).size).toBeGreaterThan(200);
+ });
+
+ it("every key a panel asks for exists in en", () => {
+ const enKeys = keysFor(en as Record<string, unknown>);
+ const missing = [...usedKeys()].filter((k) => !enKeys.has(k));
+ expect(missing).toEqual([]);
+ });
+
+ for (const [lang, loc] of [
+ ["de", de],
+ ["es", es],
+ ] as const) {
+ it(`${lang} has the same local_models keys as en`, () => {
+ const enKeys = keysFor(en as Record<string, unknown>);
+ const langKeys = keysFor(loc as Record<string, unknown>);
+ const missing = [...enKeys].filter((k) => !langKeys.has(k));
+ const extra = [...langKeys].filter((k) => !enKeys.has(k));
+ expect({ missing, extra }).toEqual({ missing: [], extra: [] });
+ });
+ }
+});
diff --git a/jarvis/ui/web/frontend/src/i18n/locales/local_models/de.json b/jarvis/ui/web/frontend/src/i18n/locales/local_models/de.json
index c9f3bf401f..48c29d08dc 100644
--- a/jarvis/ui/web/frontend/src/i18n/locales/local_models/de.json
+++ b/jarvis/ui/web/frontend/src/i18n/locales/local_models/de.json
@@ -12,17 +12,335 @@
"tab_catalogue": "Katalog",
"tab_huggingface": "Hugging Face",
"tab_server": "Server",
- "overview_title": "Überblick",
- "overview_placeholder": "Rollen, Grafikspeicher und Speicherplatz kommen im nächsten Schritt hierher. Bis dahin funktionieren Katalog und Server bereits.",
- "models_title": "Installierte Modelle",
- "models_placeholder": "Die Liste der installierten Modelle kommt mit dem nächsten Schritt.",
"catalogue_title": "Katalog",
"catalogue_subtitle": "Empfohlene Downloads und die gesamte öffentliche Bibliothek.",
"huggingface_title": "Hugging Face",
- "huggingface_placeholder": "GGUF-Modelle von Hugging Face zu laden ist standardmäßig aus und kommt in einem späteren Schritt.",
"server_title": "Server",
"server_subtitle": "Wo die Modelle laufen und wie sie erreichbar sind.",
"no_provider": "In dieser Version gibt es keinen lokalen Modellserver. Hier kann nichts laufen, solange kein Anbieter Downloads unterstützt.",
- "loading": "Suche den lokalen Modellserver…"
+ "loading": "Suche den lokalen Modellserver…",
+ "catalogue": {
+ "mode_label": "Katalogansicht",
+ "mode_recommended": "Empfohlen",
+ "mode_newest": "Neueste",
+ "mode_popular": "Beliebt",
+ "capability_label": "Nach Fähigkeit filtern",
+ "cap_tools": "Tools",
+ "cap_vision": "Bilder",
+ "cap_embedding": "Embedding",
+ "cap_thinking": "Denken",
+ "search_placeholder": "Bibliothek durchsuchen…",
+ "fetched_ago": "Katalog vor {minutes} min geladen",
+ "fetched_just_now": "Katalog gerade eben geladen",
+ "refresh": "Katalog neu laden",
+ "reviewed": "Auswahl geprüft am {date}",
+ "loading": "Katalog wird gelesen…",
+ "empty": "Nichts im Katalog passt dazu.",
+ "library_label": "Öffentliche Modellbibliothek",
+ "tags_label": "Tags von {model}",
+ "tags_loading": "Tags werden gelesen…",
+ "tags_empty": "Dieses Modell hat keinen herunterladbaren Tag.",
+ "group_chat": "Chat",
+ "group_vision": "Bilder",
+ "group_coder": "Programmieren",
+ "group_embedding": "Embedding",
+ "recommended_badge": "Empfehlung für {roles}",
+ "col_name": "Modell",
+ "col_capabilities": "Fähigkeiten",
+ "col_sizes": "Größen",
+ "col_pulls": "Downloads",
+ "col_updated": "Aktualisiert",
+ "col_expand": "Tags anzeigen",
+ "col_tag": "Tag",
+ "col_quant": "Quantisierung",
+ "col_context": "Kontext",
+ "col_size": "Größe",
+ "col_fit": "Passt auf diesen Rechner",
+ "col_action": "Aktion",
+ "no_size": "Größe unbekannt",
+ "cloud_only": "Nur gehostet",
+ "pull": "Laden",
+ "pull_aria": "{model} herunterladen",
+ "installed": "Installiert",
+ "use_for": "Verwenden für…",
+ "use_for_menu": "Dieses Modell für eine Rolle verwenden",
+ "use_for_done": "{model} wird jetzt für {role} verwendet.",
+ "pulling": "{model} wird geladen: {percent} %",
+ "pull_done": "{model} ist installiert.",
+ "pull_failed": "{model} konnte nicht geladen werden: {message}",
+ "exact_title": "Genauen Namen laden",
+ "exact_placeholder": "z. B. qwen3.5:4b oder hf.co/user/repo:Q4_K_M",
+ "exact_pull": "Laden",
+ "exact_hint": "Jeder Name, den der Server annimmt, funktioniert hier – auch Tags, die der Katalog nicht zeigt."
+ },
+ "role_chat": "Chat",
+ "role_tools_screen": "Werkzeuge & Bildschirm",
+ "role_deep": "Tiefe Arbeit & Code",
+ "role_embedding": "Einbettungen",
+ "role_voice": "Sprache",
+ "role_ack": "Kurze Bestätigung",
+ "role_polish": "Diktat-Feinschliff",
+ "huggingface": {
+ "toggle_label": "Hugging Face",
+ "toggle_sentence": "GGUF-Modelle aus jedem öffentlichen Hugging-Face-Repository laden. Ollama lädt sie wie seine eigene Bibliothek herunter.",
+ "toggle_hint": "Standardmäßig aus. Solange es aus ist, spricht nichts auf diesem Rechner mit huggingface.co.",
+ "search_placeholder": "Hugging Face nach GGUF-Repositories durchsuchen",
+ "sort_label": "Sortierung",
+ "sort_downloads": "Downloads",
+ "sort_newest": "Neueste",
+ "sort_trending": "Im Trend",
+ "empty_query": "Modellnamen eingeben, um zu suchen — zum Beispiel qwen3.8 oder gemma4.",
+ "searching": "Hugging Face wird durchsucht…",
+ "no_results": "Kein GGUF-Repository passt dazu.",
+ "arch_unknown": "Architektur unbekannt",
+ "col_params": "Parameter",
+ "col_context": "Kontext",
+ "col_downloads": "Downloads",
+ "col_updated": "Aktualisiert",
+ "loading_files": "Dateien des Repositorys werden gelesen…",
+ "no_files": "Dieses Repository enthält keine .gguf-Datei zum Laden.",
+ "open_repo": "Auf huggingface.co öffnen",
+ "quant_default": "Standard",
+ "size_unknown": "Größe unbekannt",
+ "fit_comfortable": "passt bequem",
+ "fit_tight": "passt knapp",
+ "fit_unknown": "Passung unbekannt",
+ "pull": "Laden",
+ "pulling": "Wird geladen…",
+ "pull_again": "Erneut laden",
+ "pull_starting": "startet",
+ "pull_done": "Installiert.",
+ "pull_failed": "Der Download wurde nicht abgeschlossen.",
+ "notes_label": "Gut zu wissen",
+ "token_note": "Das Stöbern funktioniert ohne Konto. Hugging Face erlaubt etwa 500 anonyme Anfragen pro 5 Minuten und Adresse; ein kostenloses Token hebt diese Grenze auf. Du kannst eines hinterlegen unter",
+ "token_link": "API-Schlüssel",
+ "private_hint": "Private Repositories: Füge den Schlüssel ~/.ollama/id_ed25519.pub deinem Hugging-Face-Konto hinzu unter"
+ },
+ "inventory": {
+ "table_label": "Installierte Modelle",
+ "col_name": "Modell",
+ "col_family": "Familie",
+ "col_params": "Parameter",
+ "col_quant": "Quant",
+ "col_context": "Kontext",
+ "col_size": "Größe",
+ "col_capabilities": "Fähigkeiten",
+ "col_modified": "Geändert",
+ "col_loaded": "Geladen",
+ "col_used_by": "Genutzt von",
+ "col_actions": "Aktionen",
+ "menu_label": "Aktionen für {model}",
+ "action_details": "Details",
+ "action_tune": "Feinjustieren",
+ "action_unload": "Aus dem Speicher entladen",
+ "action_delete": "Löschen",
+ "use_for": "Verwenden für {role}",
+ "role_chat": "Chat",
+ "role_tools_screen": "Tools & Bildschirm",
+ "role_deep": "Deep & Coding",
+ "role_embedding": "Embeddings",
+ "assigned": "{role} verwendet jetzt {model}.",
+ "unloaded": "{model} wurde aus dem Speicher entladen.",
+ "deleted": "{model} wurde gelöscht.",
+ "not_loaded": "Nicht geladen",
+ "unknown": "Unbekannt",
+ "loading": "Wird geladen…",
+ "failed": "Die Modellliste konnte nicht gelesen werden.",
+ "empty": "Noch nichts installiert. Der Katalog-Tab zeigt, was du herunterladen kannst.",
+ "fact_license": "Lizenz",
+ "fact_capabilities": "Fähigkeiten",
+ "fact_context": "Nativer Kontext",
+ "fact_digest": "Digest",
+ "fact_parameters": "Parameter",
+ "fact_template": "Vorlage",
+ "fact_none": "Keine gesetzt",
+ "delete_confirm": "{model} ({size}) von diesem Rechner löschen? Der Download ist weg, bis du ihn erneut herunterlädst.",
+ "delete_reassign": "Seine Rollen übergeben an",
+ "delete_reassign_pick": "Modell wählen",
+ "delete_do": "Löschen",
+ "deleting": "Wird gelöscht…",
+ "cancel": "Abbrechen",
+ "stat_disk": "Speicherplatz der Modelle",
+ "stat_disk_hint": "Aliase teilen sich ihre Gewichte",
+ "stat_loaded": "Jetzt geladen",
+ "stat_loaded_hint": "{count} im Speicher",
+ "stat_total": "Modelle",
+ "stat_total_hint": "Auf diesem Server installiert",
+ "role_voice": "Sprache"
+ },
+ "overview": {
+ "server": "Server",
+ "server_running": "Läuft",
+ "server_stopped": "Gestoppt",
+ "server_not_installed": "Nicht installiert",
+ "server_remote": "Entfernt",
+ "server_unreachable": "Nicht erreichbar",
+ "server_unknown": "…",
+ "server_version": "Ollama {version}",
+ "gpu": "Grafikspeicher",
+ "gpu_unknown": "unbekannt",
+ "gpu_unknown_hint": "Keine Grafikkarte lesbar; Modelle laufen auf dem Prozessor.",
+ "gpu_source": "Gelesen über {source}",
+ "disk": "Speicherplatz der Modelle",
+ "loaded": "Gerade geladen",
+ "loaded_none": "Gerade ist nichts im Speicher."
+ },
+ "roles": {
+ "title": "Rollen",
+ "subtitle": "Welcher Download für welche Aufgabe antwortet. Ein Knopf pro Zeile.",
+ "loading": "Rollen werden gelesen…",
+ "other_brain": "Ollama ist nicht dein aktives Gehirn — gerade antwortet {brain}. Diese Plätze werden trotzdem gefüllt, sie warten nur, bis sie dran sind.",
+ "other_brain_link": "Gehirn unter API-Schlüssel wechseln",
+ "discovery": "Jarvis wählt den kleinsten passenden Download.",
+ "follows_chat": "Wird auf der eigenen Karte gesetzt.",
+ "not_installed": "nicht installiert",
+ "read_only": "Wird woanders gesetzt",
+ "pick_label": "Modell für {role}",
+ "pick_discovery": "Jarvis wählen lassen",
+ "pick_none": "Modell wählen",
+ "pick_missing_suffix": "(nicht installiert)",
+ "use_recommended": "Empfehlung nutzen",
+ "download_recommended": "{model} herunterladen",
+ "tune": "Einstellen",
+ "more_roles": "Weitere Rollen",
+ "empty_body": "Noch ist nichts installiert. Ein Klick lädt die empfohlenen Chat- und Einbettungsmodelle für diesen Rechner und füllt jede Rolle.",
+ "setup_button": "Empfohlene Modelle einrichten",
+ "progress_pulling": "Lädt herunter",
+ "progress_assigning": "Rolle wird zugewiesen…",
+ "progress_tuning": "Einstellungen für diesen Rechner werden gewählt…",
+ "progress_done": "Fertig.",
+ "progress_error": "Das hat nicht geklappt:",
+ "readback_gpu": "Läuft mit {ctx} Kontext vollständig auf der Grafikkarte.",
+ "readback_ctx": "Läuft mit {ctx} Kontext.",
+ "readback_defaults": "Läuft mit den eigenen Vorgaben des Modells.",
+ "tune_skipped": "Zugewiesen; die Einstellungen bleiben bei den Vorgaben des Modells."
+ },
+ "server": {
+ "host_eyebrow": "Host",
+ "host_title": "Serveradresse",
+ "host_subtitle": "Jede Rolle — Chat, Tools, Deep, Embedding, Stimme — spricht mit dieser einen Adresse.",
+ "test": "Testen",
+ "testing": "Teste…",
+ "probe_ok": "Erreichbar — Ollama {version}, {ms} ms",
+ "runtime_eyebrow": "Laufzeit",
+ "runtime_title": "Lokaler Prozess",
+ "status_running": "Läuft",
+ "status_stopped": "Installiert, läuft nicht",
+ "status_missing": "Nicht installiert",
+ "stop": "Stoppen",
+ "stop_confirm": "Nochmal klicken zum Stoppen",
+ "stopping": "Stoppe…",
+ "remote_note": "Dieser Server läuft auf einem anderen Rechner; verwalte ihn dort.",
+ "loaded_eyebrow": "Gerade geladen",
+ "loaded_title": "Modelle im Speicher",
+ "loaded_subtitle": "{vram} Beschleunigerspeicher belegt.",
+ "loaded_empty": "Nichts geladen. Ein Modell lädt bei der ersten Anfrage und entlädt sich nach seinem Keep-alive.",
+ "col_model": "Modell",
+ "col_vram": "VRAM",
+ "col_expires": "Entlädt",
+ "col_actions": "Aktionen",
+ "context": "{tokens} Token Kontext",
+ "expires_in_min": "in {minutes} Min",
+ "expires_now": "jeden Moment",
+ "expires_kept": "bleibt geladen",
+ "unload": "Entladen",
+ "unloading": "Entlade…",
+ "facts_eyebrow": "Fakten",
+ "fact_version": "Version",
+ "fact_host_kind": "Host",
+ "fact_address": "Adresse",
+ "fact_models_dir": "Modellverzeichnis",
+ "fact_disk": "Auf der Festplatte",
+ "fact_keep_alive": "Keep-alive-Standard",
+ "keep_alive_value": "{value}, sofern OLLAMA_KEEP_ALIVE oder eine Einstellung pro Modell nichts anderes sagt",
+ "host_local": "Dieser Rechner",
+ "host_remote": "Anderer Rechner",
+ "unknown": "Unbekannt",
+ "env_eyebrow": "Umgebung",
+ "env_title": "Servereinstellungen",
+ "env_subtitle": "Ollama liest diese Werte aus der Umgebung. Zeile kopieren, ausführen, dann den Server neu starten.",
+ "env_os_label": "Betriebssystem",
+ "os_windows": "Windows",
+ "os_macos": "macOS",
+ "os_linux": "Linux",
+ "copy": "Kopieren",
+ "copied": "In die Zwischenablage kopiert.",
+ "copy_failed": "Kopieren fehlgeschlagen — Zeile markieren und von Hand kopieren.",
+ "log_title": "Serverprotokoll",
+ "log_refresh": "Protokoll neu laden",
+ "log_loading": "Lese das Protokoll…",
+ "log_empty": "Noch kein Protokoll. Jarvis schreibt eines, wenn es den Server selbst startet."
+ },
+ "tune": {
+ "aria": "{model} feinjustieren",
+ "eyebrow": "Feinjustieren",
+ "close": "Schließen",
+ "facts": "{size} auf der Platte · nativer Kontext {context}",
+ "suggested_title": "Vorschlag für diesen Rechner",
+ "suggested_apply": "Übernehmen",
+ "suggested_loading": "Der Speicher dieses Rechners wird gelesen…",
+ "suggested_failed": "Es konnte kein Vorschlag gemacht werden.",
+ "chip_default": "Standard",
+ "chip_native": "{context} (nativ)",
+ "auto": "auto",
+ "group_context": "Kontext",
+ "group_placement": "Platzierung",
+ "group_session": "Sitzung",
+ "group_sampling": "Sampling",
+ "num_ctx": "Kontextfenster",
+ "num_ctx_sentence": "Wie viel vom Gespräch das Modell gleichzeitig im Blick behält; mehr kostet Speicher.",
+ "num_gpu": "Grafikkarten-Schichten",
+ "num_gpu_sentence": "Wie viele Schichten auf der Grafikkarte laufen; Alle legt alles dorthin, Nur CPU hält es von der Karte fern.",
+ "gpu_all": "Alle",
+ "gpu_cpu": "Nur CPU",
+ "gpu_custom": "Eigene",
+ "gpu_layers": "Schichten",
+ "num_thread": "CPU-Threads",
+ "num_thread_sentence": "Wie viele CPU-Threads das Modell nutzen darf; leer lässt Ollama entscheiden.",
+ "keep_alive": "Geladen halten",
+ "keep_alive_sentence": "Wie lange das Modell nach einer Antwort im Speicher geladen bleibt.",
+ "keep_default": "Standard",
+ "keep_5m": "5 Min",
+ "keep_30m": "30 Min",
+ "keep_2h": "2 Std",
+ "keep_forever": "Für immer",
+ "keep_unload": "Nach Gebrauch entladen",
+ "think": "Nachdenken",
+ "think_sentence": "Ob und wie intensiv das Modell nachdenkt, bevor es antwortet.",
+ "think_default": "Standard",
+ "think_off": "Aus",
+ "think_low": "Niedrig",
+ "think_medium": "Mittel",
+ "think_high": "Hoch",
+ "think_max": "Maximal",
+ "temperature": "Temperatur",
+ "temperature_sentence": "Wie gewagt die Formulierung ist; niedrig ist präzise, hoch ist kreativ.",
+ "top_p": "Top P",
+ "top_p_sentence": "Nur die wahrscheinlichsten Wörter, die zusammen diesen Anteil erreichen, kommen infrage.",
+ "top_k": "Top K",
+ "top_k_sentence": "Nur so viele der wahrscheinlichsten nächsten Wörter kommen infrage.",
+ "min_p": "Min P",
+ "min_p_sentence": "Wörter unter diesem Anteil der Top-Wahl werden nie gewählt.",
+ "repeat_penalty": "Wiederholungsstrafe",
+ "repeat_penalty_sentence": "Wie stark das Modell davon abgehalten wird, sich zu wiederholen.",
+ "seed": "Seed",
+ "seed_sentence": "Gleicher Seed und gleiche Frage geben die gleiche Antwort.",
+ "num_predict": "Antwortlänge",
+ "num_predict_sentence": "Die längste Antwort, die das Modell schreiben darf, bevor es stoppt.",
+ "stop": "Stopp-Sequenzen",
+ "stop_sentence": "Textfolgen, bei denen das Modell aufhört zu schreiben, eine pro Zeile.",
+ "save": "Speichern",
+ "saving": "Wird gespeichert…",
+ "reset": "Auf Standard zurücksetzen",
+ "reset_done": "{model} läuft wieder mit den Ollama-Standardwerten.",
+ "knob_count": "{count} gesetzt",
+ "saved": "{count} Einstellungen für {model} gespeichert; die nächste Antwort nutzt sie.",
+ "saved_with_alias": "{count} Einstellungen für {model} gespeichert. Ollama baut das Profil {alias} beim ersten Gebrauch, das dauert ein paar Sekunden.",
+ "saved_cleared": "{model} läuft wieder mit den Ollama-Standardwerten.",
+ "footnote_alias": "Läuft über das Profil {alias}; der erste Gebrauch nach einer Änderung dauert ein paar Sekunden.",
+ "footnote_will_bake": "Diese Einstellungen werden beim Speichern zu einem Profil des Modells; der erste Gebrauch danach dauert ein paar Sekunden.",
+ "footnote_no_alias": "Diese Einstellungen gehen mit jeder Anfrage mit; nichts wird neu gebaut."
+ },
+ "tune_missing": "Dieses Modell ist nicht mehr installiert, es gibt also nichts einzustellen."
}
}
diff --git a/jarvis/ui/web/frontend/src/i18n/locales/local_models/en.json b/jarvis/ui/web/frontend/src/i18n/locales/local_models/en.json
index f36d745493..ae0ec7fb30 100644
--- a/jarvis/ui/web/frontend/src/i18n/locales/local_models/en.json
+++ b/jarvis/ui/web/frontend/src/i18n/locales/local_models/en.json
@@ -12,17 +12,335 @@
"tab_catalogue": "Catalogue",
"tab_huggingface": "Hugging Face",
"tab_server": "Server",
- "overview_title": "Overview",
- "overview_placeholder": "Roles, graphics memory and disk usage land here next. Until then the Catalogue and Server tabs already work.",
- "models_title": "Installed models",
- "models_placeholder": "The installed-models ledger arrives with the next step.",
"catalogue_title": "Catalogue",
"catalogue_subtitle": "Recommended downloads and the whole public library.",
"huggingface_title": "Hugging Face",
- "huggingface_placeholder": "Pulling GGUF models from Hugging Face is off by default and arrives with a later step.",
"server_title": "Server",
"server_subtitle": "Where the models run and how to reach them.",
"no_provider": "No local model server is available in this build. Nothing here can run until a pull-capable provider exists.",
- "loading": "Looking for the local model server…"
+ "loading": "Looking for the local model server…",
+ "catalogue": {
+ "mode_label": "Catalogue view",
+ "mode_recommended": "Recommended",
+ "mode_newest": "Newest",
+ "mode_popular": "Popular",
+ "capability_label": "Capability filter",
+ "cap_tools": "Tools",
+ "cap_vision": "Vision",
+ "cap_embedding": "Embedding",
+ "cap_thinking": "Thinking",
+ "search_placeholder": "Search the library…",
+ "fetched_ago": "Catalogue fetched {minutes} min ago",
+ "fetched_just_now": "Catalogue fetched just now",
+ "refresh": "Refresh the catalogue",
+ "reviewed": "Shortlist reviewed {date}",
+ "loading": "Reading the catalogue…",
+ "empty": "Nothing in the catalogue matches.",
+ "library_label": "Public model library",
+ "tags_label": "Tags of {model}",
+ "tags_loading": "Reading the tags…",
+ "tags_empty": "This model lists no downloadable tag.",
+ "group_chat": "Chat",
+ "group_vision": "Vision",
+ "group_coder": "Coding",
+ "group_embedding": "Embedding",
+ "recommended_badge": "Pick for {roles}",
+ "col_name": "Model",
+ "col_capabilities": "Capabilities",
+ "col_sizes": "Sizes",
+ "col_pulls": "Pulls",
+ "col_updated": "Updated",
+ "col_expand": "Show tags",
+ "col_tag": "Tag",
+ "col_quant": "Quantization",
+ "col_context": "Context",
+ "col_size": "Size",
+ "col_fit": "Fit on this machine",
+ "col_action": "Action",
+ "no_size": "size unknown",
+ "cloud_only": "Hosted only",
+ "pull": "Pull",
+ "pull_aria": "Download {model}",
+ "installed": "Installed",
+ "use_for": "Use for…",
+ "use_for_menu": "Use this model for a role",
+ "use_for_done": "{model} is now used for {role}.",
+ "pulling": "Downloading {model}: {percent}%",
+ "pull_done": "{model} is installed.",
+ "pull_failed": "{model} could not be downloaded: {message}",
+ "exact_title": "Pull exact name",
+ "exact_placeholder": "e.g. qwen3.5:4b or hf.co/user/repo:Q4_K_M",
+ "exact_pull": "Pull",
+ "exact_hint": "Any name the server accepts works here, including tags the catalogue does not list."
+ },
+ "role_chat": "Chat",
+ "role_tools_screen": "Tools & screen",
+ "role_deep": "Deep & coding",
+ "role_embedding": "Embeddings",
+ "role_voice": "Voice",
+ "role_ack": "Quick acknowledgement",
+ "role_polish": "Dictation polish",
+ "huggingface": {
+ "toggle_label": "Hugging Face",
+ "toggle_sentence": "Pull GGUF models from any public Hugging Face repository. Ollama downloads them like its own library.",
+ "toggle_hint": "Off by default. While off, nothing on this machine talks to huggingface.co.",
+ "search_placeholder": "Search Hugging Face for GGUF repositories",
+ "sort_label": "Sort",
+ "sort_downloads": "Downloads",
+ "sort_newest": "Newest",
+ "sort_trending": "Trending",
+ "empty_query": "Type a model name to search — for example qwen3.8 or gemma4.",
+ "searching": "Searching Hugging Face…",
+ "no_results": "No GGUF repository matches that.",
+ "arch_unknown": "architecture unknown",
+ "col_params": "Params",
+ "col_context": "Context",
+ "col_downloads": "downloads",
+ "col_updated": "Updated",
+ "loading_files": "Reading the repository's files…",
+ "no_files": "This repository has no .gguf file to pull.",
+ "open_repo": "Open on huggingface.co",
+ "quant_default": "default",
+ "size_unknown": "size unknown",
+ "fit_comfortable": "fits comfortably",
+ "fit_tight": "tight fit",
+ "fit_unknown": "fit unknown",
+ "pull": "Pull",
+ "pulling": "Pulling…",
+ "pull_again": "Pull again",
+ "pull_starting": "starting",
+ "pull_done": "Installed.",
+ "pull_failed": "The pull did not finish.",
+ "notes_label": "Good to know",
+ "token_note": "Browsing works without an account. Hugging Face allows about 500 anonymous requests per 5 minutes per address; a free token lifts that limit. You can store one under",
+ "token_link": "API Keys",
+ "private_hint": "Private repositories: add the key ~/.ollama/id_ed25519.pub to your Hugging Face account at"
+ },
+ "inventory": {
+ "table_label": "Installed models",
+ "col_name": "Model",
+ "col_family": "Family",
+ "col_params": "Params",
+ "col_quant": "Quant",
+ "col_context": "Context",
+ "col_size": "Size",
+ "col_capabilities": "Capabilities",
+ "col_modified": "Modified",
+ "col_loaded": "Loaded",
+ "col_used_by": "Used by",
+ "col_actions": "Actions",
+ "menu_label": "Actions for {model}",
+ "action_details": "Details",
+ "action_tune": "Tune",
+ "action_unload": "Unload from memory",
+ "action_delete": "Delete",
+ "use_for": "Use for {role}",
+ "role_chat": "Chat",
+ "role_tools_screen": "Tools & screen",
+ "role_deep": "Deep & coding",
+ "role_embedding": "Embeddings",
+ "assigned": "{role} now uses {model}.",
+ "unloaded": "{model} was unloaded from memory.",
+ "deleted": "{model} was deleted.",
+ "not_loaded": "Not loaded",
+ "unknown": "Unknown",
+ "loading": "Loading…",
+ "failed": "The inventory could not be read.",
+ "empty": "Nothing is installed yet. The Catalogue tab lists what you can download.",
+ "fact_license": "License",
+ "fact_capabilities": "Capabilities",
+ "fact_context": "Native context",
+ "fact_digest": "Digest",
+ "fact_parameters": "Parameters",
+ "fact_template": "Template",
+ "fact_none": "None set",
+ "delete_confirm": "Delete {model} ({size}) from this machine? The download is gone until you pull it again.",
+ "delete_reassign": "Hand its roles to",
+ "delete_reassign_pick": "Pick a model",
+ "delete_do": "Delete",
+ "deleting": "Deleting…",
+ "cancel": "Cancel",
+ "stat_disk": "Disk used by models",
+ "stat_disk_hint": "Aliases share their weights",
+ "stat_loaded": "Loaded now",
+ "stat_loaded_hint": "{count} in memory",
+ "stat_total": "Models",
+ "stat_total_hint": "Installed on this server",
+ "role_voice": "Voice"
+ },
+ "overview": {
+ "server": "Server",
+ "server_running": "Running",
+ "server_stopped": "Stopped",
+ "server_not_installed": "Not installed",
+ "server_remote": "Remote",
+ "server_unreachable": "Unreachable",
+ "server_unknown": "…",
+ "server_version": "Ollama {version}",
+ "gpu": "Graphics memory",
+ "gpu_unknown": "unknown",
+ "gpu_unknown_hint": "No graphics card could be read; models run on the processor.",
+ "gpu_source": "Read via {source}",
+ "disk": "Disk used by models",
+ "loaded": "Loaded now",
+ "loaded_none": "Nothing is in memory right now."
+ },
+ "roles": {
+ "title": "Roles",
+ "subtitle": "Which download answers for which job. One button each.",
+ "loading": "Reading the roles…",
+ "other_brain": "Ollama is not your active brain — {brain} answers right now. These slots still fill, they just wait their turn.",
+ "other_brain_link": "Change the brain in API Keys",
+ "discovery": "Jarvis picks the smallest capable download.",
+ "follows_chat": "Set on its own card.",
+ "not_installed": "not installed",
+ "read_only": "Set elsewhere",
+ "pick_label": "Model for {role}",
+ "pick_discovery": "Let Jarvis pick",
+ "pick_none": "Choose a model",
+ "pick_missing_suffix": "(not installed)",
+ "use_recommended": "Use recommended",
+ "download_recommended": "Download {model}",
+ "tune": "Tune",
+ "more_roles": "More roles",
+ "empty_body": "Nothing is installed yet. One click downloads the recommended chat and embedding models for this machine and fills every role.",
+ "setup_button": "Set up the recommended models",
+ "progress_pulling": "Downloading",
+ "progress_assigning": "Assigning the role…",
+ "progress_tuning": "Choosing the settings for this machine…",
+ "progress_done": "Done.",
+ "progress_error": "That did not work:",
+ "readback_gpu": "Runs with a {ctx} context fully on the graphics card.",
+ "readback_ctx": "Runs with a {ctx} context.",
+ "readback_defaults": "Runs with the model's own defaults.",
+ "tune_skipped": "Assigned; the settings stay at the model's defaults."
+ },
+ "server": {
+ "host_eyebrow": "Host",
+ "host_title": "Server address",
+ "host_subtitle": "Every role — chat, tools, deep, embedding, voice — talks to this one address.",
+ "test": "Test",
+ "testing": "Testing…",
+ "probe_ok": "Reachable — Ollama {version}, {ms} ms",
+ "runtime_eyebrow": "Runtime",
+ "runtime_title": "Local process",
+ "status_running": "Running",
+ "status_stopped": "Installed, not running",
+ "status_missing": "Not installed",
+ "stop": "Stop",
+ "stop_confirm": "Click again to stop",
+ "stopping": "Stopping…",
+ "remote_note": "This server runs on another machine; manage it there.",
+ "loaded_eyebrow": "Loaded now",
+ "loaded_title": "Models in memory",
+ "loaded_subtitle": "{vram} of accelerator memory in use.",
+ "loaded_empty": "Nothing is loaded. A model loads on its first request and unloads after its keep-alive.",
+ "col_model": "Model",
+ "col_vram": "VRAM",
+ "col_expires": "Unloads",
+ "col_actions": "Actions",
+ "context": "{tokens} tokens of context",
+ "expires_in_min": "in {minutes} min",
+ "expires_now": "any moment",
+ "expires_kept": "kept loaded",
+ "unload": "Unload",
+ "unloading": "Unloading…",
+ "facts_eyebrow": "Facts",
+ "fact_version": "Version",
+ "fact_host_kind": "Host",
+ "fact_address": "Address",
+ "fact_models_dir": "Models directory",
+ "fact_disk": "On disk",
+ "fact_keep_alive": "Keep-alive default",
+ "keep_alive_value": "{value} unless OLLAMA_KEEP_ALIVE or a per-model setting says otherwise",
+ "host_local": "This machine",
+ "host_remote": "Another machine",
+ "unknown": "Unknown",
+ "env_eyebrow": "Environment",
+ "env_title": "Server settings",
+ "env_subtitle": "Ollama reads these from the environment. Copy a line, run it, then restart the server.",
+ "env_os_label": "Operating system",
+ "os_windows": "Windows",
+ "os_macos": "macOS",
+ "os_linux": "Linux",
+ "copy": "Copy",
+ "copied": "Copied to the clipboard.",
+ "copy_failed": "Could not copy — select the line and copy it by hand.",
+ "log_title": "Server log",
+ "log_refresh": "Refresh log",
+ "log_loading": "Reading the log…",
+ "log_empty": "No log yet. Jarvis writes one when it starts the server itself."
+ },
+ "tune": {
+ "aria": "Tune {model}",
+ "eyebrow": "Tune",
+ "close": "Close",
+ "facts": "{size} on disk · native context {context}",
+ "suggested_title": "Suggested for this machine",
+ "suggested_apply": "Apply",
+ "suggested_loading": "Reading this machine's memory…",
+ "suggested_failed": "No suggestion could be made.",
+ "chip_default": "Default",
+ "chip_native": "{context} (native)",
+ "auto": "auto",
+ "group_context": "Context",
+ "group_placement": "Placement",
+ "group_session": "Session",
+ "group_sampling": "Sampling",
+ "num_ctx": "Context window",
+ "num_ctx_sentence": "How much of the conversation the model can keep in view at once; bigger costs memory.",
+ "num_gpu": "Graphics card layers",
+ "num_gpu_sentence": "How many layers run on the graphics card; All puts everything there, CPU only keeps it off the card.",
+ "gpu_all": "All",
+ "gpu_cpu": "CPU only",
+ "gpu_custom": "Custom",
+ "gpu_layers": "Layers",
+ "num_thread": "CPU threads",
+ "num_thread_sentence": "How many CPU threads the model may use; empty lets Ollama decide.",
+ "keep_alive": "Keep loaded",
+ "keep_alive_sentence": "How long the model stays loaded in memory after an answer.",
+ "keep_default": "Default",
+ "keep_5m": "5 min",
+ "keep_30m": "30 min",
+ "keep_2h": "2 h",
+ "keep_forever": "Forever",
+ "keep_unload": "Unload after use",
+ "think": "Thinking",
+ "think_sentence": "Whether and how hard the model reasons before it answers.",
+ "think_default": "Default",
+ "think_off": "Off",
+ "think_low": "Low",
+ "think_medium": "Medium",
+ "think_high": "High",
+ "think_max": "Max",
+ "temperature": "Temperature",
+ "temperature_sentence": "How adventurous the wording is; low is precise, high is creative.",
+ "top_p": "Top P",
+ "top_p_sentence": "Only the most likely words that together reach this share are considered.",
+ "top_k": "Top K",
+ "top_k_sentence": "Only this many of the likeliest next words are considered.",
+ "min_p": "Min P",
+ "min_p_sentence": "Words below this share of the top choice are never picked.",
+ "repeat_penalty": "Repeat penalty",
+ "repeat_penalty_sentence": "How strongly the model is discouraged from repeating itself.",
+ "seed": "Seed",
+ "seed_sentence": "Same seed and same question give the same answer.",
+ "num_predict": "Answer length",
+ "num_predict_sentence": "The longest answer the model may write before it stops.",
+ "stop": "Stop sequences",
+ "stop_sentence": "Text sequences at which the model stops writing, one per line.",
+ "save": "Save",
+ "saving": "Saving…",
+ "reset": "Reset to defaults",
+ "reset_done": "{model} is back on Ollama's defaults.",
+ "knob_count": "{count} set",
+ "saved": "Saved {count} settings for {model}; the next answer uses them.",
+ "saved_with_alias": "Saved {count} settings for {model}. Ollama builds the profile {alias} on first use, which takes a few seconds.",
+ "saved_cleared": "{model} runs on Ollama's defaults again.",
+ "footnote_alias": "Runs through the profile {alias}; the first use after a change takes a few seconds.",
+ "footnote_will_bake": "These settings become a profile of the model on save; the first use afterwards takes a few seconds.",
+ "footnote_no_alias": "These settings go with each request; nothing is rebuilt."
+ },
+ "tune_missing": "That model is no longer installed, so there is nothing to tune."
}
}
diff --git a/jarvis/ui/web/frontend/src/i18n/locales/local_models/es.json b/jarvis/ui/web/frontend/src/i18n/locales/local_models/es.json
index dd5151dbde..7606c84271 100644
--- a/jarvis/ui/web/frontend/src/i18n/locales/local_models/es.json
+++ b/jarvis/ui/web/frontend/src/i18n/locales/local_models/es.json
@@ -12,17 +12,335 @@
"tab_catalogue": "Catálogo",
"tab_huggingface": "Hugging Face",
"tab_server": "Servidor",
- "overview_title": "Resumen",
- "overview_placeholder": "Los roles, la memoria gráfica y el uso de disco llegarán en el siguiente paso. Mientras tanto, Catálogo y Servidor ya funcionan.",
- "models_title": "Modelos instalados",
- "models_placeholder": "La lista de modelos instalados llega con el siguiente paso.",
"catalogue_title": "Catálogo",
"catalogue_subtitle": "Descargas recomendadas y toda la biblioteca pública.",
"huggingface_title": "Hugging Face",
- "huggingface_placeholder": "Descargar modelos GGUF desde Hugging Face está desactivado por defecto y llegará en un paso posterior.",
"server_title": "Servidor",
"server_subtitle": "Dónde se ejecutan los modelos y cómo llegar a ellos.",
"no_provider": "Esta versión no incluye ningún servidor de modelos locales. Nada puede funcionar aquí hasta que exista un proveedor que admita descargas.",
- "loading": "Buscando el servidor de modelos locales…"
+ "loading": "Buscando el servidor de modelos locales…",
+ "catalogue": {
+ "mode_label": "Vista del catálogo",
+ "mode_recommended": "Recomendados",
+ "mode_newest": "Más nuevos",
+ "mode_popular": "Populares",
+ "capability_label": "Filtrar por capacidad",
+ "cap_tools": "Herramientas",
+ "cap_vision": "Visión",
+ "cap_embedding": "Embedding",
+ "cap_thinking": "Razonamiento",
+ "search_placeholder": "Buscar en la biblioteca…",
+ "fetched_ago": "Catálogo cargado hace {minutes} min",
+ "fetched_just_now": "Catálogo cargado ahora mismo",
+ "refresh": "Recargar el catálogo",
+ "reviewed": "Selección revisada el {date}",
+ "loading": "Leyendo el catálogo…",
+ "empty": "Nada en el catálogo coincide.",
+ "library_label": "Biblioteca pública de modelos",
+ "tags_label": "Etiquetas de {model}",
+ "tags_loading": "Leyendo las etiquetas…",
+ "tags_empty": "Este modelo no tiene ninguna etiqueta descargable.",
+ "group_chat": "Chat",
+ "group_vision": "Visión",
+ "group_coder": "Programación",
+ "group_embedding": "Embedding",
+ "recommended_badge": "Elección para {roles}",
+ "col_name": "Modelo",
+ "col_capabilities": "Capacidades",
+ "col_sizes": "Tamaños",
+ "col_pulls": "Descargas",
+ "col_updated": "Actualizado",
+ "col_expand": "Mostrar etiquetas",
+ "col_tag": "Etiqueta",
+ "col_quant": "Cuantización",
+ "col_context": "Contexto",
+ "col_size": "Tamaño",
+ "col_fit": "Cabe en este equipo",
+ "col_action": "Acción",
+ "no_size": "tamaño desconocido",
+ "cloud_only": "Solo alojado",
+ "pull": "Descargar",
+ "pull_aria": "Descargar {model}",
+ "installed": "Instalado",
+ "use_for": "Usar para…",
+ "use_for_menu": "Usar este modelo para un rol",
+ "use_for_done": "{model} se usa ahora para {role}.",
+ "pulling": "Descargando {model}: {percent} %",
+ "pull_done": "{model} está instalado.",
+ "pull_failed": "No se pudo descargar {model}: {message}",
+ "exact_title": "Descargar un nombre exacto",
+ "exact_placeholder": "p. ej. qwen3.5:4b o hf.co/user/repo:Q4_K_M",
+ "exact_pull": "Descargar",
+ "exact_hint": "Cualquier nombre que acepte el servidor funciona aquí, incluidas etiquetas que el catálogo no muestra."
+ },
+ "role_chat": "Chat",
+ "role_tools_screen": "Herramientas y pantalla",
+ "role_deep": "Trabajo profundo y código",
+ "role_embedding": "Incrustaciones",
+ "role_voice": "Voz",
+ "role_ack": "Confirmación rápida",
+ "role_polish": "Pulido del dictado",
+ "huggingface": {
+ "toggle_label": "Hugging Face",
+ "toggle_sentence": "Descarga modelos GGUF de cualquier repositorio público de Hugging Face. Ollama los descarga como si fueran de su propia biblioteca.",
+ "toggle_hint": "Desactivado por defecto. Mientras esté desactivado, nada en este equipo se comunica con huggingface.co.",
+ "search_placeholder": "Buscar repositorios GGUF en Hugging Face",
+ "sort_label": "Orden",
+ "sort_downloads": "Descargas",
+ "sort_newest": "Más recientes",
+ "sort_trending": "Tendencia",
+ "empty_query": "Escribe el nombre de un modelo para buscar, por ejemplo qwen3.8 o gemma4.",
+ "searching": "Buscando en Hugging Face…",
+ "no_results": "Ningún repositorio GGUF coincide.",
+ "arch_unknown": "arquitectura desconocida",
+ "col_params": "Parámetros",
+ "col_context": "Contexto",
+ "col_downloads": "descargas",
+ "col_updated": "Actualizado",
+ "loading_files": "Leyendo los archivos del repositorio…",
+ "no_files": "Este repositorio no tiene ningún archivo .gguf que descargar.",
+ "open_repo": "Abrir en huggingface.co",
+ "quant_default": "predeterminado",
+ "size_unknown": "tamaño desconocido",
+ "fit_comfortable": "cabe con holgura",
+ "fit_tight": "cabe justo",
+ "fit_unknown": "ajuste desconocido",
+ "pull": "Descargar",
+ "pulling": "Descargando…",
+ "pull_again": "Descargar de nuevo",
+ "pull_starting": "iniciando",
+ "pull_done": "Instalado.",
+ "pull_failed": "La descarga no terminó.",
+ "notes_label": "Conviene saber",
+ "token_note": "La búsqueda funciona sin cuenta. Hugging Face permite unas 500 solicitudes anónimas cada 5 minutos por dirección; un token gratuito elimina ese límite. Puedes guardar uno en",
+ "token_link": "Claves de API",
+ "private_hint": "Repositorios privados: añade la clave ~/.ollama/id_ed25519.pub a tu cuenta de Hugging Face en"
+ },
+ "inventory": {
+ "table_label": "Modelos instalados",
+ "col_name": "Modelo",
+ "col_family": "Familia",
+ "col_params": "Parámetros",
+ "col_quant": "Cuant.",
+ "col_context": "Contexto",
+ "col_size": "Tamaño",
+ "col_capabilities": "Capacidades",
+ "col_modified": "Modificado",
+ "col_loaded": "Cargado",
+ "col_used_by": "Usado por",
+ "col_actions": "Acciones",
+ "menu_label": "Acciones para {model}",
+ "action_details": "Detalles",
+ "action_tune": "Ajustar",
+ "action_unload": "Descargar de la memoria",
+ "action_delete": "Eliminar",
+ "use_for": "Usar para {role}",
+ "role_chat": "Chat",
+ "role_tools_screen": "Herramientas y pantalla",
+ "role_deep": "Deep y código",
+ "role_embedding": "Embeddings",
+ "assigned": "{role} ahora usa {model}.",
+ "unloaded": "{model} se descargó de la memoria.",
+ "deleted": "{model} se eliminó.",
+ "not_loaded": "No cargado",
+ "unknown": "Desconocido",
+ "loading": "Cargando…",
+ "failed": "No se pudo leer el inventario.",
+ "empty": "Aún no hay nada instalado. La pestaña Catálogo muestra qué puedes descargar.",
+ "fact_license": "Licencia",
+ "fact_capabilities": "Capacidades",
+ "fact_context": "Contexto nativo",
+ "fact_digest": "Digest",
+ "fact_parameters": "Parámetros",
+ "fact_template": "Plantilla",
+ "fact_none": "Ninguno",
+ "delete_confirm": "¿Eliminar {model} ({size}) de este equipo? La descarga desaparece hasta que la vuelvas a bajar.",
+ "delete_reassign": "Pasar sus roles a",
+ "delete_reassign_pick": "Elige un modelo",
+ "delete_do": "Eliminar",
+ "deleting": "Eliminando…",
+ "cancel": "Cancelar",
+ "stat_disk": "Disco usado por modelos",
+ "stat_disk_hint": "Los alias comparten sus pesos",
+ "stat_loaded": "Cargado ahora",
+ "stat_loaded_hint": "{count} en memoria",
+ "stat_total": "Modelos",
+ "stat_total_hint": "Instalados en este servidor",
+ "role_voice": "Voz"
+ },
+ "overview": {
+ "server": "Servidor",
+ "server_running": "En marcha",
+ "server_stopped": "Detenido",
+ "server_not_installed": "No instalado",
+ "server_remote": "Remoto",
+ "server_unreachable": "Inaccesible",
+ "server_unknown": "…",
+ "server_version": "Ollama {version}",
+ "gpu": "Memoria gráfica",
+ "gpu_unknown": "desconocida",
+ "gpu_unknown_hint": "No se pudo leer ninguna tarjeta gráfica; los modelos corren en el procesador.",
+ "gpu_source": "Leída mediante {source}",
+ "disk": "Disco usado por los modelos",
+ "loaded": "Cargado ahora",
+ "loaded_none": "Ahora mismo no hay nada en memoria."
+ },
+ "roles": {
+ "title": "Roles",
+ "subtitle": "Qué descarga responde a qué tarea. Un botón por fila.",
+ "loading": "Leyendo los roles…",
+ "other_brain": "Ollama no es tu cerebro activo: ahora responde {brain}. Estos puestos se llenan igual, solo esperan su turno.",
+ "other_brain_link": "Cambiar el cerebro en Claves API",
+ "discovery": "Jarvis elige la descarga más pequeña que sirva.",
+ "follows_chat": "Se elige en su propia tarjeta.",
+ "not_installed": "no instalado",
+ "read_only": "Se define en otro sitio",
+ "pick_label": "Modelo para {role}",
+ "pick_discovery": "Dejar que Jarvis elija",
+ "pick_none": "Elige un modelo",
+ "pick_missing_suffix": "(no instalado)",
+ "use_recommended": "Usar el recomendado",
+ "download_recommended": "Descargar {model}",
+ "tune": "Ajustar",
+ "more_roles": "Más roles",
+ "empty_body": "Todavía no hay nada instalado. Un clic descarga los modelos de chat e incrustaciones recomendados para este equipo y llena todos los roles.",
+ "setup_button": "Configurar los modelos recomendados",
+ "progress_pulling": "Descargando",
+ "progress_assigning": "Asignando el rol…",
+ "progress_tuning": "Eligiendo los ajustes para este equipo…",
+ "progress_done": "Listo.",
+ "progress_error": "Eso no funcionó:",
+ "readback_gpu": "Corre con un contexto de {ctx} por completo en la tarjeta gráfica.",
+ "readback_ctx": "Corre con un contexto de {ctx}.",
+ "readback_defaults": "Corre con los valores propios del modelo.",
+ "tune_skipped": "Asignado; los ajustes se quedan en los valores del modelo."
+ },
+ "server": {
+ "host_eyebrow": "Host",
+ "host_title": "Dirección del servidor",
+ "host_subtitle": "Cada rol — chat, herramientas, profundo, embedding, voz — habla con esta única dirección.",
+ "test": "Probar",
+ "testing": "Probando…",
+ "probe_ok": "Accesible — Ollama {version}, {ms} ms",
+ "runtime_eyebrow": "Tiempo de ejecución",
+ "runtime_title": "Proceso local",
+ "status_running": "En marcha",
+ "status_stopped": "Instalado, no está en marcha",
+ "status_missing": "No instalado",
+ "stop": "Detener",
+ "stop_confirm": "Pulsa otra vez para detener",
+ "stopping": "Deteniendo…",
+ "remote_note": "Este servidor se ejecuta en otra máquina; adminístralo allí.",
+ "loaded_eyebrow": "Cargado ahora",
+ "loaded_title": "Modelos en memoria",
+ "loaded_subtitle": "{vram} de memoria del acelerador en uso.",
+ "loaded_empty": "No hay nada cargado. Un modelo se carga con la primera petición y se descarga tras su keep-alive.",
+ "col_model": "Modelo",
+ "col_vram": "VRAM",
+ "col_expires": "Se descarga",
+ "col_actions": "Acciones",
+ "context": "{tokens} tokens de contexto",
+ "expires_in_min": "en {minutes} min",
+ "expires_now": "en cualquier momento",
+ "expires_kept": "se mantiene cargado",
+ "unload": "Descargar",
+ "unloading": "Descargando…",
+ "facts_eyebrow": "Datos",
+ "fact_version": "Versión",
+ "fact_host_kind": "Host",
+ "fact_address": "Dirección",
+ "fact_models_dir": "Directorio de modelos",
+ "fact_disk": "En disco",
+ "fact_keep_alive": "Keep-alive por defecto",
+ "keep_alive_value": "{value}, salvo que OLLAMA_KEEP_ALIVE o un ajuste por modelo indique otra cosa",
+ "host_local": "Esta máquina",
+ "host_remote": "Otra máquina",
+ "unknown": "Desconocido",
+ "env_eyebrow": "Entorno",
+ "env_title": "Ajustes del servidor",
+ "env_subtitle": "Ollama lee estos valores del entorno. Copia una línea, ejecútala y reinicia el servidor.",
+ "env_os_label": "Sistema operativo",
+ "os_windows": "Windows",
+ "os_macos": "macOS",
+ "os_linux": "Linux",
+ "copy": "Copiar",
+ "copied": "Copiado al portapapeles.",
+ "copy_failed": "No se pudo copiar — selecciona la línea y cópiala a mano.",
+ "log_title": "Registro del servidor",
+ "log_refresh": "Recargar el registro",
+ "log_loading": "Leyendo el registro…",
+ "log_empty": "Aún no hay registro. Jarvis escribe uno cuando inicia el servidor por sí mismo."
+ },
+ "tune": {
+ "aria": "Ajustar {model}",
+ "eyebrow": "Ajustar",
+ "close": "Cerrar",
+ "facts": "{size} en disco · contexto nativo {context}",
+ "suggested_title": "Sugerido para este equipo",
+ "suggested_apply": "Aplicar",
+ "suggested_loading": "Leyendo la memoria de este equipo…",
+ "suggested_failed": "No se pudo hacer una sugerencia.",
+ "chip_default": "Predeterminado",
+ "chip_native": "{context} (nativo)",
+ "auto": "auto",
+ "group_context": "Contexto",
+ "group_placement": "Ubicación",
+ "group_session": "Sesión",
+ "group_sampling": "Muestreo",
+ "num_ctx": "Ventana de contexto",
+ "num_ctx_sentence": "Cuánto de la conversación mantiene el modelo a la vista a la vez; más cuesta memoria.",
+ "num_gpu": "Capas en la tarjeta gráfica",
+ "num_gpu_sentence": "Cuántas capas corren en la tarjeta gráfica; Todas lo pone todo allí, Solo CPU lo mantiene fuera.",
+ "gpu_all": "Todas",
+ "gpu_cpu": "Solo CPU",
+ "gpu_custom": "Personalizado",
+ "gpu_layers": "Capas",
+ "num_thread": "Hilos de CPU",
+ "num_thread_sentence": "Cuántos hilos de CPU puede usar el modelo; vacío deja decidir a Ollama.",
+ "keep_alive": "Mantener cargado",
+ "keep_alive_sentence": "Cuánto tiempo permanece el modelo cargado en memoria tras una respuesta.",
+ "keep_default": "Predeterminado",
+ "keep_5m": "5 min",
+ "keep_30m": "30 min",
+ "keep_2h": "2 h",
+ "keep_forever": "Siempre",
+ "keep_unload": "Descargar tras usar",
+ "think": "Razonamiento",
+ "think_sentence": "Si el modelo razona antes de responder y con qué intensidad.",
+ "think_default": "Predeterminado",
+ "think_off": "Apagado",
+ "think_low": "Bajo",
+ "think_medium": "Medio",
+ "think_high": "Alto",
+ "think_max": "Máximo",
+ "temperature": "Temperatura",
+ "temperature_sentence": "Qué tan atrevida es la redacción; bajo es preciso, alto es creativo.",
+ "top_p": "Top P",
+ "top_p_sentence": "Solo se consideran las palabras más probables que juntas alcanzan esta proporción.",
+ "top_k": "Top K",
+ "top_k_sentence": "Solo se consideran esta cantidad de las palabras siguientes más probables.",
+ "min_p": "Min P",
+ "min_p_sentence": "Las palabras por debajo de esta proporción de la mejor opción nunca se eligen.",
+ "repeat_penalty": "Penalización por repetición",
+ "repeat_penalty_sentence": "Con qué fuerza se desalienta al modelo a repetirse.",
+ "seed": "Semilla",
+ "seed_sentence": "La misma semilla y la misma pregunta dan la misma respuesta.",
+ "num_predict": "Longitud de respuesta",
+ "num_predict_sentence": "La respuesta más larga que el modelo puede escribir antes de detenerse.",
+ "stop": "Secuencias de parada",
+ "stop_sentence": "Secuencias de texto en las que el modelo deja de escribir, una por línea.",
+ "save": "Guardar",
+ "saving": "Guardando…",
+ "reset": "Restablecer valores",
+ "reset_done": "{model} vuelve a los valores predeterminados de Ollama.",
+ "knob_count": "{count} definidos",
+ "saved": "Se guardaron {count} ajustes para {model}; la próxima respuesta los usa.",
+ "saved_with_alias": "Se guardaron {count} ajustes para {model}. Ollama crea el perfil {alias} en el primer uso, lo que tarda unos segundos.",
+ "saved_cleared": "{model} vuelve a usar los valores predeterminados de Ollama.",
+ "footnote_alias": "Se ejecuta a través del perfil {alias}; el primer uso tras un cambio tarda unos segundos.",
+ "footnote_will_bake": "Estos ajustes se convierten en un perfil del modelo al guardar; el primer uso después tarda unos segundos.",
+ "footnote_no_alias": "Estos ajustes van con cada solicitud; no se reconstruye nada."
+ },
+ "tune_missing": "Ese modelo ya no está instalado, así que no hay nada que ajustar."
}
}
diff --git a/jarvis/ui/web/frontend/src/views/LocalModelsView.test.tsx b/jarvis/ui/web/frontend/src/views/LocalModelsView.test.tsx
index 0c61d18297..62abc1aaac 100644
--- a/jarvis/ui/web/frontend/src/views/LocalModelsView.test.tsx
+++ b/jarvis/ui/web/frontend/src/views/LocalModelsView.test.tsx
@@ -15,7 +15,8 @@ const { mockState, mockProviders } = vi.hoisted(() => ({
}));
vi.mock("@/store/events", () => ({
- useEventStore: (selector: (s: typeof mockState) => unknown) => selector(mockState),
+ useEventStore: (selector: (s: typeof mockState) => unknown) =>
+ selector(mockState),
}));
vi.mock("@/i18n", () => ({
@@ -28,16 +29,65 @@ vi.mock("@/hooks/useProviders", () => ({
useProviders: () => mockProviders,
}));
-// The provider-card panels have their own tests; here only their mount matters.
-vi.mock("@/components/providers/ProviderTierSection", () => ({
- OllamaRuntimePanel: ({ alwaysVisible }: { alwaysVisible?: boolean }) => (
- <div data-testid="runtime-panel" data-always={alwaysVisible ? "true" : "false"} />
+// Every panel has its own tests; here only the mount and the wiring matter.
+vi.mock("@/views/local-models/OverviewPanel", () => ({
+ OverviewPanel: ({
+ providerId,
+ onTune,
+ onOpenApiKeys,
+ }: {
+ providerId: string;
+ onTune?: (model: string) => void;
+ onOpenApiKeys?: () => void;
+ }) => (
+ <div data-testid="overview-panel" data-provider={providerId}>
+ <button type="button" onClick={() => onTune?.("qwen3.5:4b")}>
+ tune
+ </button>
+ <button type="button" onClick={() => onOpenApiKeys?.()}>
+ keys
+ </button>
+ </div>
),
- BaseUrlField: () => <div data-testid="base-url-field" />,
- LocalModelDownloadPanel: () => <div data-testid="download-panel" />,
+}));
+vi.mock("@/views/local-models/InventoryPanel", () => ({
+ InventoryPanel: () => <div data-testid="inventory-panel" />,
+}));
+vi.mock("@/views/local-models/CataloguePanel", () => ({
+ CataloguePanel: () => <div data-testid="catalogue-panel" />,
+}));
+vi.mock("@/views/local-models/HuggingFacePanel", () => ({
+ HuggingFacePanel: () => <div data-testid="huggingface-panel" />,
+}));
+vi.mock("@/views/local-models/ServerPanel", () => ({
+ ServerPanel: () => <div data-testid="server-panel" />,
+}));
+vi.mock("@/views/local-models/TuneSheet", () => ({
+ TuneSheet: ({
+ model,
+ onClose,
+ }: {
+ model: { name: string };
+ onClose?: () => void;
+ }) => (
+ <div data-testid="tune-sheet" data-model={model.name}>
+ <button type="button" onClick={onClose}>
+ close
+ </button>
+ </div>
+ ),
+}));
+vi.mock("@/hooks/useLocalModels", () => ({
+ useInventory: () => ({
+ isLoading: false,
+ data: { models: [{ name: "qwen3.5:4b" }] },
+ }),
}));
-import { LOCAL_MODELS_MODE_KEY, LocalModelsView } from "@/views/LocalModelsView";
+import {
+ LOCAL_MODELS_MODE_KEY,
+ LocalModelsView,
+} from "@/views/LocalModelsView";
const OLLAMA = {
id: "ollama",
@@ -63,41 +113,90 @@ describe("LocalModelsView", () => {
render(<LocalModelsView />);
expect(screen.getByText("local_models.title")).toBeDefined();
- expect(screen.getByRole("tab", { name: "local_models.tab_overview" })).toBeDefined();
- expect(screen.getByRole("tab", { name: "local_models.tab_catalogue" })).toBeDefined();
- expect(screen.getByRole("tab", { name: "local_models.tab_server" })).toBeDefined();
+ expect(
+ screen.getByRole("tab", { name: "local_models.tab_overview" }),
+ ).toBeDefined();
+ expect(
+ screen.getByRole("tab", { name: "local_models.tab_catalogue" }),
+ ).toBeDefined();
+ expect(
+ screen.getByRole("tab", { name: "local_models.tab_server" }),
+ ).toBeDefined();
// Simple hides the Advanced-only tabs.
- expect(screen.queryByRole("tab", { name: "local_models.tab_models" })).toBeNull();
- expect(screen.queryByRole("tab", { name: "local_models.tab_huggingface" })).toBeNull();
+ expect(
+ screen.queryByRole("tab", { name: "local_models.tab_models" }),
+ ).toBeNull();
+ expect(
+ screen.queryByRole("tab", { name: "local_models.tab_huggingface" }),
+ ).toBeNull();
expect(screen.getByTestId("local-models-overview")).toBeDefined();
});
- it("switches tabs and mounts the existing panels on Catalogue and Server", () => {
+ it("switches tabs and mounts the Catalogue and Server panels", () => {
render(<LocalModelsView />);
-
- fireEvent.click(screen.getByRole("tab", { name: "local_models.tab_catalogue" }));
- expect(screen.getByTestId("download-panel")).toBeDefined();
+ expect(
+ screen.getByTestId("overview-panel").getAttribute("data-provider"),
+ ).toBe("ollama");
+
+ fireEvent.click(
+ screen.getByRole("tab", { name: "local_models.tab_catalogue" }),
+ );
+ expect(screen.getByTestId("catalogue-panel")).toBeDefined();
expect(screen.queryByTestId("local-models-overview")).toBeNull();
- fireEvent.click(screen.getByRole("tab", { name: "local_models.tab_server" }));
- expect(screen.getByTestId("base-url-field")).toBeDefined();
- expect(screen.getByTestId("runtime-panel").getAttribute("data-always")).toBe("true");
+ fireEvent.click(
+ screen.getByRole("tab", { name: "local_models.tab_server" }),
+ );
+ expect(screen.getByTestId("server-panel")).toBeDefined();
+ });
+
+ it("opens the Tune sheet for the model a role row names, and closes it again", () => {
+ render(<LocalModelsView />);
+ expect(screen.queryByTestId("local-models-tune-drawer")).toBeNull();
+
+ fireEvent.click(screen.getByRole("button", { name: "tune" }));
+ expect(screen.getByTestId("tune-sheet").getAttribute("data-model")).toBe(
+ "qwen3.5:4b",
+ );
+
+ fireEvent.click(screen.getByRole("button", { name: "close" }));
+ expect(screen.queryByTestId("local-models-tune-drawer")).toBeNull();
+
+ fireEvent.click(screen.getByRole("button", { name: "keys" }));
+ expect(mockState.setActiveSection).toHaveBeenCalledWith("apikeys");
});
it("reveals Models in Advanced and remembers the choice", () => {
render(<LocalModelsView />);
- fireEvent.click(screen.getByRole("tab", { name: "local_models.mode_advanced" }));
- expect(screen.getByRole("tab", { name: "local_models.tab_models" })).toBeDefined();
- expect(screen.getByRole("tab", { name: "local_models.tab_huggingface" })).toBeDefined();
+ fireEvent.click(
+ screen.getByRole("tab", { name: "local_models.mode_advanced" }),
+ );
+ expect(
+ screen.getByRole("tab", { name: "local_models.tab_models" }),
+ ).toBeDefined();
+ expect(
+ screen.getByRole("tab", { name: "local_models.tab_huggingface" }),
+ ).toBeDefined();
expect(window.localStorage.getItem(LOCAL_MODELS_MODE_KEY)).toBe("advanced");
- fireEvent.click(screen.getByRole("tab", { name: "local_models.tab_models" }));
- expect(screen.getByTestId("local-models-models")).toBeDefined();
+ fireEvent.click(
+ screen.getByRole("tab", { name: "local_models.tab_models" }),
+ );
+ expect(screen.getByTestId("inventory-panel")).toBeDefined();
+
+ fireEvent.click(
+ screen.getByRole("tab", { name: "local_models.tab_huggingface" }),
+ );
+ expect(screen.getByTestId("huggingface-panel")).toBeDefined();
// Back to Simple: the rail drops Models and the view falls back to Overview.
- fireEvent.click(screen.getByRole("tab", { name: "local_models.mode_simple" }));
- expect(screen.queryByRole("tab", { name: "local_models.tab_models" })).toBeNull();
+ fireEvent.click(
+ screen.getByRole("tab", { name: "local_models.mode_simple" }),
+ );
+ expect(
+ screen.queryByRole("tab", { name: "local_models.tab_models" }),
+ ).toBeNull();
expect(screen.getByTestId("local-models-overview")).toBeDefined();
});
diff --git a/jarvis/ui/web/frontend/src/views/LocalModelsView.tsx b/jarvis/ui/web/frontend/src/views/LocalModelsView.tsx
index 42e5d50956..fb6054d04d 100644
--- a/jarvis/ui/web/frontend/src/views/LocalModelsView.tsx
+++ b/jarvis/ui/web/frontend/src/views/LocalModelsView.tsx
@@ -3,11 +3,12 @@
* a server the user names): the Ollama runtime, the installed models, the
* public catalogue and, later, Hugging Face.
*
- * Step 1 of the plan: the skeleton. The column layout is the Costs view's,
- * the header carries a Simple | Advanced switch (persisted per browser) and a
- * rail of tabs. Models and Hugging Face are Advanced-only; the Catalogue and
- * Server tabs already mount the existing provider-card panels, the others
- * hold a placeholder until their own step lands.
+ * The column layout is the Costs view's, the header carries a Simple |
+ * Advanced switch (persisted per browser) and a rail of tabs. Simple shows
+ * Overview (server facts + the four roles), Catalogue and Server; Advanced
+ * adds Models (the installed ledger with the Tune sheet) and Hugging Face.
+ * "Tune" from a role row opens the Tune sheet for that model right under the
+ * overview, so a non-developer never has to find the model in the ledger.
*
* Everything is gated on the capability `supports_model_pull`, never on a
* provider name — a second pull-capable server later gets the same section.
@@ -20,22 +21,28 @@ import {
PanelHeader,
SegmentedFilter,
} from "@/components/extensions/primitives";
-import {
- BaseUrlField,
- LocalModelDownloadPanel,
- OllamaRuntimePanel,
-} from "@/components/providers/ProviderTierSection";
+import { useInventory } from "@/hooks/useLocalModels";
import { useProviders } from "@/hooks/useProviders";
+import { CataloguePanel } from "@/views/local-models/CataloguePanel";
+import { HuggingFacePanel } from "@/views/local-models/HuggingFacePanel";
+import { InventoryPanel } from "@/views/local-models/InventoryPanel";
+import { OverviewPanel } from "@/views/local-models/OverviewPanel";
+import { ServerPanel } from "@/views/local-models/ServerPanel";
+import { TuneSheet } from "@/views/local-models/TuneSheet";
import { useEventStore } from "@/store/events";
import { useLocaleChunk, useT } from "@/i18n";
export type LocalModelsMode = "simple" | "advanced";
-export type LocalModelsTab = "overview" | "models" | "catalogue" | "huggingface" | "server";
+export type LocalModelsTab =
+ "overview" | "models" | "catalogue" | "huggingface" | "server";
/** Browser-local preference; a private window simply starts on Simple. */
export const LOCAL_MODELS_MODE_KEY = "jarvis.localModels.mode";
-const ADVANCED_ONLY: ReadonlySet<LocalModelsTab> = new Set(["models", "huggingface"]);
+const ADVANCED_ONLY: ReadonlySet<LocalModelsTab> = new Set([
+ "models",
+ "huggingface",
+]);
function readStoredMode(): LocalModelsMode {
try {
@@ -57,11 +64,45 @@ function storeMode(mode: LocalModelsMode): void {
}
}
+/**
+ * The Tune sheet opened from a role row. The sheet wants the inventory row
+ * (capabilities, native context, size), so it is looked up here; a model the
+ * inventory no longer lists gets one honest sentence instead of a blank sheet.
+ */
+function RoleTuneDrawer({
+ providerId,
+ model,
+ onClose,
+}: {
+ providerId: string;
+ model: string;
+ onClose: () => void;
+}) {
+ const t = useT();
+ const inventory = useInventory(providerId);
+ const row = inventory.data?.models.find((m) => m.name === model) ?? null;
+ return (
+ <div data-testid="local-models-tune-drawer">
+ <Panel className="p-4">
+ {row ? (
+ <TuneSheet providerId={providerId} model={row} onClose={onClose} />
+ ) : (
+ <p className="text-sm text-muted-foreground">
+ {inventory.isLoading
+ ? t("local_models.loading")
+ : t("local_models.tune_missing")}
+ </p>
+ )}
+ </Panel>
+ </div>
+ );
+}
+
export function LocalModelsView() {
const t = useT();
useLocaleChunk("local_models");
const setActiveSection = useEventStore((s) => s.setActiveSection);
- const { providers, loading, refetch } = useProviders();
+ const { providers, loading } = useProviders();
// The one server that can download models. Capability, not provider id.
const descriptor = useMemo(
@@ -71,6 +112,13 @@ export function LocalModelsView() {
const [mode, setMode] = useState<LocalModelsMode>(readStoredMode);
const [tab, setTab] = useState<LocalModelsTab>("overview");
+ // The model whose Tune sheet is open under the overview ("" = none).
+ const [tuneModel, setTuneModel] = useState<string>("");
+ const openApiKeys = useCallback(
+ () => setActiveSection("apikeys"),
+ [setActiveSection],
+ );
+ const closeTune = useCallback(() => setTuneModel(""), []);
const changeMode = useCallback((next: LocalModelsMode) => {
setMode(next);
@@ -83,10 +131,6 @@ export function LocalModelsView() {
if (mode === "simple" && ADVANCED_ONLY.has(tab)) setTab("overview");
}, [mode, tab]);
- const onChanged = useCallback(() => {
- void refetch();
- }, [refetch]);
-
const tabs = useMemo(() => {
const all: { id: LocalModelsTab; label: string }[] = [
{ id: "overview", label: t("local_models.tab_overview") },
@@ -95,13 +139,18 @@ export function LocalModelsView() {
{ id: "huggingface", label: t("local_models.tab_huggingface") },
{ id: "server", label: t("local_models.tab_server") },
];
- return mode === "advanced" ? all : all.filter((o) => !ADVANCED_ONLY.has(o.id));
+ return mode === "advanced"
+ ? all
+ : all.filter((o) => !ADVANCED_ONLY.has(o.id));
}, [mode, t]);
return (
<ScrollArea className="h-full">
- <div className="mx-auto flex max-w-[1180px] flex-col gap-4 px-6 py-6">
- <BackLink label={t("local_models.back")} onClick={() => setActiveSection("apikeys")} />
+ <div className="mx-auto flex max-w-[1720px] flex-col gap-4 px-6 py-6">
+ <BackLink
+ label={t("local_models.back")}
+ onClick={() => setActiveSection("apikeys")}
+ />
<PanelHeader
title={t("local_models.title")}
subtitle={t("local_models.subtitle")}
@@ -126,36 +175,40 @@ export function LocalModelsView() {
/>
{loading && !descriptor && (
- <p className="text-sm text-muted-foreground">{t("local_models.loading")}</p>
+ <p className="text-sm text-muted-foreground">
+ {t("local_models.loading")}
+ </p>
)}
{!loading && !descriptor && (
<Panel className="p-4">
- <p className="text-sm text-muted-foreground">{t("local_models.no_provider")}</p>
+ <p className="text-sm text-muted-foreground">
+ {t("local_models.no_provider")}
+ </p>
</Panel>
)}
{descriptor && tab === "overview" && (
- <Panel className="p-4">
- <div className="space-y-3" data-testid="local-models-overview">
- <PanelHeader title={t("local_models.overview_title")} />
- <OllamaRuntimePanel providerId={descriptor.id} onChanged={onChanged} alwaysVisible />
- <p className="text-sm text-muted-foreground">
- {t("local_models.overview_placeholder")}
- </p>
- </div>
- </Panel>
+ <div className="space-y-4" data-testid="local-models-overview">
+ <OverviewPanel
+ providerId={descriptor.id}
+ onTune={setTuneModel}
+ onOpenApiKeys={openApiKeys}
+ />
+ {tuneModel && (
+ <RoleTuneDrawer
+ providerId={descriptor.id}
+ model={tuneModel}
+ onClose={closeTune}
+ />
+ )}
+ </div>
)}
{descriptor && tab === "models" && (
- <Panel className="p-4">
- <div className="space-y-3" data-testid="local-models-models">
- <PanelHeader title={t("local_models.models_title")} />
- <p className="text-sm text-muted-foreground">
- {t("local_models.models_placeholder")}
- </p>
- </div>
- </Panel>
+ <div data-testid="local-models-models">
+ <InventoryPanel providerId={descriptor.id} />
+ </div>
)}
{descriptor && tab === "catalogue" && (
@@ -165,8 +218,7 @@ export function LocalModelsView() {
title={t("local_models.catalogue_title")}
subtitle={t("local_models.catalogue_subtitle")}
/>
- {/* The download panel already embeds the library browser. */}
- <LocalModelDownloadPanel descriptor={descriptor} onChanged={onChanged} />
+ <CataloguePanel providerId={descriptor.id} />
</div>
</Panel>
)}
@@ -175,26 +227,15 @@ export function LocalModelsView() {
<Panel className="p-4">
<div className="space-y-3" data-testid="local-models-huggingface">
<PanelHeader title={t("local_models.huggingface_title")} />
- <p className="text-sm text-muted-foreground">
- {t("local_models.huggingface_placeholder")}
- </p>
+ <HuggingFacePanel providerId={descriptor.id} />
</div>
</Panel>
)}
{descriptor && tab === "server" && (
- <Panel className="p-4">
- <div className="space-y-3" data-testid="local-models-server">
- <PanelHeader
- title={t("local_models.server_title")}
- subtitle={t("local_models.server_subtitle")}
- />
- <OllamaRuntimePanel providerId={descriptor.id} onChanged={onChanged} alwaysVisible />
- {descriptor.supports_base_url && (
- <BaseUrlField descriptor={descriptor} onChanged={onChanged} />
- )}
- </div>
- </Panel>
+ <div data-testid="local-models-server">
+ <ServerPanel providerId={descriptor.id} />
+ </div>
)}
</div>
</ScrollArea>
diff --git a/tests/unit/brain/test_ollama_roles.py b/tests/unit/brain/test_ollama_roles.py
index 40abbae768..94c0ed7172 100644
--- a/tests/unit/brain/test_ollama_roles.py
+++ b/tests/unit/brain/test_ollama_roles.py
@@ -22,6 +22,12 @@ def _cfg() -> JarvisConfig:
)
cfg.ultrawiki.embedding_provider = "ollama"
cfg.ultrawiki.embedding_model = "qwen3-embedding:4b"
+ cfg.brain.providers["local-realtime"] = BrainProviderConfig(
+ launch_command=(
+ "python -m server --model_name qwen3.5:4b-voice-8k "
+ "--responses_api_base_url http://127.0.0.1:11434/v1"
+ )
+ )
return cfg
@@ -99,10 +105,14 @@ def writes(monkeypatch: pytest.MonkeyPatch) -> list[tuple]:
return calls
-def test_the_four_writable_roles_come_first_in_order() -> None:
- assert ollama_roles.WRITABLE_ROLE_IDS == ("chat", "tools_screen", "deep", "embedding")
- assert [r.id for r in ollama_roles.ROLES][4:] == ["voice", "ack", "polish"]
- assert all(r.advanced and not r.writable for r in ollama_roles.ROLES[4:])
+def test_the_five_writable_roles_come_first_in_order() -> None:
+ assert ollama_roles.WRITABLE_ROLE_IDS == ("chat", "voice", "tools_screen", "deep", "embedding")
+ assert [r.id for r in ollama_roles.ROLES][5:] == ["ack", "polish"]
+ assert all(r.advanced and not r.writable for r in ollama_roles.ROLES[5:])
+ # Voice is its own slot, never a mirror of the chat pick.
+ voice = ollama_roles.role_spec("voice")
+ assert voice.writable and not voice.advanced
+ assert voice.config_key != ollama_roles.role_spec("chat").config_key
def test_current_pick_reads_every_slot() -> None:
@@ -115,7 +125,11 @@ def test_current_pick_reads_every_slot() -> None:
assert ollama_roles.current_pick(cfg, "tools_screen") == ("qwen3.5:4b", "")
assert ollama_roles.current_pick(cfg, "deep") == ("gemma4:12b-it-qat", "")
assert ollama_roles.current_pick(cfg, "embedding") == ("qwen3-embedding:4b", "")
+ # The voice brain is the launch command's model, alias folded to the base tag.
assert ollama_roles.current_pick(cfg, "voice") == ("qwen3.5:4b", "")
+ del cfg.brain.providers["local-realtime"]
+ tag, note = ollama_roles.current_pick(cfg, "voice")
+ assert tag == "" and "not installed" in note
assert ollama_roles.current_pick(cfg, "ack")[0] == cfg.ack_brain.providers.ollama.model
assert ollama_roles.current_pick(None, "chat") == ("", "")
@@ -216,9 +230,32 @@ def test_set_role_embedding_switches_the_wiki_to_ollama_when_needed(writes) -> N
ollama_roles.set_role("embedding", "", cfg=cfg)
+def test_set_role_voice_rewrites_only_the_launch_command_model(
+ writes, monkeypatch: pytest.MonkeyPatch
+) -> None:
+ rewrites: list[str] = []
+ monkeypatch.setattr(
+ config_writer,
+ "update_local_realtime_launch_model",
+ lambda model, **kw: rewrites.append(model) or True,
+ )
+ cfg = _cfg()
+ out = ollama_roles.set_role("voice", "gemma4:12b-it-qat", cfg=cfg)
+ assert out["config_key"] == "brain.providers.local-realtime.launch_command"
+ assert rewrites == ["gemma4:12b-it-qat"]
+ assert "--model_name gemma4:12b-it-qat " in cfg.brain.providers["local-realtime"].launch_command
+ assert writes == [] # the chat slot is untouched
+ with pytest.raises(ValueError, match="needs a model name"):
+ ollama_roles.set_role("voice", "", cfg=cfg)
+ del cfg.brain.providers["local-realtime"]
+ with pytest.raises(ValueError, match="Install the managed voice server"):
+ ollama_roles.set_role("voice", "x", cfg=cfg)
+ assert rewrites == ["gemma4:12b-it-qat"]
+
+
def test_set_role_refuses_read_only_and_unknown_roles(writes) -> None:
with pytest.raises(ValueError, match="own card"):
- ollama_roles.set_role("voice", "x", cfg=_cfg())
+ ollama_roles.set_role("ack", "x", cfg=_cfg())
with pytest.raises(ValueError, match="Unknown role"):
ollama_roles.set_role("nope", "x", cfg=_cfg())
assert writes == []
@@ -226,7 +263,8 @@ def test_set_role_refuses_read_only_and_unknown_roles(writes) -> None:
def test_roles_using_is_latest_tolerant() -> None:
cfg = _cfg()
- assert ollama_roles.roles_using(cfg, "qwen3.5:4b") == ["chat"]
+ # The fixture's voice server runs the same base tag, so both slots answer.
+ assert ollama_roles.roles_using(cfg, "qwen3.5:4b") == ["chat", "voice"]
cfg.brain.providers["ollama"].model = "gemma4"
assert ollama_roles.roles_using(cfg, "gemma4:latest") == ["chat"]
assert ollama_roles.roles_using(cfg, "qwen3-embedding:4b") == ["embedding"]
diff --git a/tests/unit/ui/web/test_local_models_routes.py b/tests/unit/ui/web/test_local_models_routes.py
index fe928f5821..23ecf57cdc 100644
--- a/tests/unit/ui/web/test_local_models_routes.py
+++ b/tests/unit/ui/web/test_local_models_routes.py
@@ -261,7 +261,7 @@ def test_roles_list_every_slot_with_pick_qualifying_and_recommendation(
body = resp.json()
assert body["error"] is None
roles = {r["id"]: r for r in body["roles"]}
- assert list(roles) == ["chat", "tools_screen", "deep", "embedding", "voice", "ack", "polish"]
+ assert list(roles) == ["chat", "voice", "tools_screen", "deep", "embedding", "ack", "polish"]
assert roles["chat"]["current"] == "qwen3.5:4b"
assert roles["chat"]["installed"] is True
assert roles["chat"]["recommended"] == "qwen3.8:27b"
@@ -270,7 +270,8 @@ def test_roles_list_every_slot_with_pick_qualifying_and_recommendation(
assert roles["tools_screen"]["qualifying"] == ["qwen3.5:4b"]
assert roles["deep"]["recommended"] == "ornith:9b"
assert roles["embedding"]["qualifying"] == ["qwen3-embedding:4b"]
- assert roles["voice"]["writable"] is False and roles["voice"]["advanced"] is True
+ assert roles["voice"]["writable"] is True and roles["voice"]["advanced"] is False
+ assert roles["ack"]["writable"] is False and roles["ack"]["advanced"] is True
assert roles["chat"]["label_key"] == "local_models.role_chat"
@@ -302,7 +303,7 @@ def test_put_role_writes_through_the_config_writer(server, fake, writes) -> None
def test_put_role_refuses_read_only_and_unknown_roles(server, fake, writes) -> None:
with TestClient(server.app) as client:
- ro = client.put(f"{BASE}/roles/voice", json={"model": "x"})
+ ro = client.put(f"{BASE}/roles/ack", json={"model": "x"})
unknown = client.put(f"{BASE}/roles/nope", json={"model": "x"})
empty_embedding = client.put(f"{BASE}/roles/embedding", json={"model": ""})
assert ro.status_code == 422