feat(chat): add local-first conversation workspace
This commit is contained in:
+2
-2
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user