From 5783996c7d37bbc1b3159c5e879eb877f77fe91e Mon Sep 17 00:00:00 2001 From: Ben Younes <2910651+ousamabenyounes@users.noreply.github.com> Date: Wed, 9 Sep 2026 09:32:35 +0000 Subject: [PATCH 1/2] Model probes report reachability and authentication Signed-off-by: Ben Younes <2910651+ousamabenyounes@users.noreply.github.com> --- web/src/i18n/en.ts | 4 ++-- web/src/i18n/zh.ts | 4 ++-- web/src/settingsProbeCopy.test.ts | 23 +++++++++++++++++++++++ 3 files changed, 27 insertions(+), 4 deletions(-) create mode 100644 web/src/settingsProbeCopy.test.ts diff --git a/web/src/i18n/en.ts b/web/src/i18n/en.ts index c5f3e1233..826676e8d 100644 --- a/web/src/i18n/en.ts +++ b/web/src/i18n/en.ts @@ -1090,8 +1090,8 @@ export const en = { testing: "Testing…", chatLabel: "Chat", embedLabel: "Embedding", - ok: (reply: string) => `Connected (${reply})`, - okDim: (dim: number) => `Connected (dim ${dim})`, + ok: (reply: string) => `Reachable and authenticated (${reply})`, + okDim: (dim: number) => `Reachable and authenticated (dim ${dim})`, }, ontology: { title: "Ontology", diff --git a/web/src/i18n/zh.ts b/web/src/i18n/zh.ts index 62f5d2ddb..4160ffeb4 100644 --- a/web/src/i18n/zh.ts +++ b/web/src/i18n/zh.ts @@ -975,8 +975,8 @@ export const zh: Strings = { testing: "测试中…", chatLabel: "对话", embedLabel: "向量", - ok: (reply: string) => `已连接(${reply})`, - okDim: (dim: number) => `已连接(维度 ${dim})`, + ok: (reply: string) => `已连通并通过认证(${reply})`, + okDim: (dim: number) => `已连通并通过认证(维度 ${dim})`, }, ontology: { title: "本体", diff --git a/web/src/settingsProbeCopy.test.ts b/web/src/settingsProbeCopy.test.ts new file mode 100644 index 000000000..b8f7aa264 --- /dev/null +++ b/web/src/settingsProbeCopy.test.ts @@ -0,0 +1,23 @@ +import { describe, expect, it } from "vitest"; +import { en } from "./i18n/en"; +import { zh } from "./i18n/zh"; + +const EMBEDDING_DIMENSION = 1024; +const PROBE_REPLY = "OK"; + +describe("model connectivity result copy", () => { + it("says the successful probes establish reachability and authentication", () => { + expect(en.settings.ok(PROBE_REPLY)).toBe( + `Reachable and authenticated (${PROBE_REPLY})`, + ); + expect(en.settings.okDim(EMBEDDING_DIMENSION)).toBe( + `Reachable and authenticated (dim ${EMBEDDING_DIMENSION})`, + ); + expect(zh.settings.ok(PROBE_REPLY)).toBe( + `已连通并通过认证(${PROBE_REPLY})`, + ); + expect(zh.settings.okDim(EMBEDDING_DIMENSION)).toBe( + `已连通并通过认证(维度 ${EMBEDDING_DIMENSION})`, + ); + }); +}); From 7262bf164a2150db58d30d75aa8e8ba7a134ad23 Mon Sep 17 00:00:00 2001 From: WaylandYang Date: Wed, 9 Sep 2026 18:41:13 +0800 Subject: [PATCH 2/2] Copy needs no test of its own Co-Authored-By: Claude Fable 5.1 Signed-off-by: WaylandYang --- web/src/i18n/zh.ts | 4 ++-- web/src/settingsProbeCopy.test.ts | 23 ----------------------- 2 files changed, 2 insertions(+), 25 deletions(-) delete mode 100644 web/src/settingsProbeCopy.test.ts diff --git a/web/src/i18n/zh.ts b/web/src/i18n/zh.ts index 4160ffeb4..b2fc1d786 100644 --- a/web/src/i18n/zh.ts +++ b/web/src/i18n/zh.ts @@ -975,8 +975,8 @@ export const zh: Strings = { testing: "测试中…", chatLabel: "对话", embedLabel: "向量", - ok: (reply: string) => `已连通并通过认证(${reply})`, - okDim: (dim: number) => `已连通并通过认证(维度 ${dim})`, + ok: (reply: string) => `已连通,认证通过(${reply})`, + okDim: (dim: number) => `已连通,认证通过(维度 ${dim})`, }, ontology: { title: "本体", diff --git a/web/src/settingsProbeCopy.test.ts b/web/src/settingsProbeCopy.test.ts deleted file mode 100644 index b8f7aa264..000000000 --- a/web/src/settingsProbeCopy.test.ts +++ /dev/null @@ -1,23 +0,0 @@ -import { describe, expect, it } from "vitest"; -import { en } from "./i18n/en"; -import { zh } from "./i18n/zh"; - -const EMBEDDING_DIMENSION = 1024; -const PROBE_REPLY = "OK"; - -describe("model connectivity result copy", () => { - it("says the successful probes establish reachability and authentication", () => { - expect(en.settings.ok(PROBE_REPLY)).toBe( - `Reachable and authenticated (${PROBE_REPLY})`, - ); - expect(en.settings.okDim(EMBEDDING_DIMENSION)).toBe( - `Reachable and authenticated (dim ${EMBEDDING_DIMENSION})`, - ); - expect(zh.settings.ok(PROBE_REPLY)).toBe( - `已连通并通过认证(${PROBE_REPLY})`, - ); - expect(zh.settings.okDim(EMBEDDING_DIMENSION)).toBe( - `已连通并通过认证(维度 ${EMBEDDING_DIMENSION})`, - ); - }); -});