feat(chat): add local-first conversation workspace

This commit is contained in:
2026-08-13 15:55:15 +08:00
parent d1d50d722c
commit 8991f78f9f
43 changed files with 5450 additions and 592 deletions
+2 -2
View File
@@ -485,7 +485,7 @@ function renderProvider(provider) {
})));
if (provider.connection.type === "frontend") {
actions.append(actionButton(provider.auth.type === "none" ? "在 Chat 中配置端点" : "在 Chat 中配置本地 Key(需 CORS / Relay", () => {
window.location.href = `https://chat.xiteng.site/?configure=${encodeURIComponent(provider.id)}`;
window.location.href = `/chat/?configure=${encodeURIComponent(provider.id)}`;
}));
}
if (!provider.builtin) {
@@ -712,7 +712,7 @@ document.getElementById("account-provider-form").addEventListener("submit", asyn
});
}
} else if (connectionType === "frontend") {
window.location.href = `https://chat.xiteng.site/?configure=${encodeURIComponent(providerId)}`;
window.location.href = `/chat/?configure=${encodeURIComponent(providerId)}`;
return;
}
await loadVault();