This commit is contained in:
k
2026-09-21 22:31:18 +02:00
parent c639f43891
commit 360f203ca2
7 changed files with 36 additions and 16 deletions
+5 -2
View File
@@ -241,9 +241,12 @@ export function Chat({
const modelGroups: PickerGroup[] = (() => {
const byDriver = new Map<string, { value: string; label: string; hint: string }[]>();
for (const m of models) {
const group = m.group ?? m.driver;
// Own-key (BYOK) models get their own section so they are never
// confused with platform models: "openai · personal key".
const base = m.group ?? m.driver;
const group = m.personal ? `${base} · ${t("chat.personalTag")}` : base;
const list = byDriver.get(group) ?? [];
list.push({ value: m.id, label: m.label, hint: m.id });
list.push({ value: m.id, label: m.label, hint: m.personal ? `${m.id} · ${t("chat.personalTag")}` : m.id });
byDriver.set(group, list);
}
return [...byDriver.entries()].map(([group, options]) => ({ group, options }));