summaryrefslogtreecommitdiffstats
path: root/assets
diff options
context:
space:
mode:
authorsigoden <sigoden@gmail.com>2025-02-10 08:26:27 +0800
committerGitHub <noreply@github.com>2025-02-10 08:26:27 +0800
commitbaf0c1ed07fc185fd237fbdf51aecaa8ed926ba6 (patch)
tree59e073ae358c46a3df264131056739b43db9a53c /assets
parentd4087dbaf7208da5ae842ec5ba2e9c442bfa4f94 (diff)
downloadaichat-baf0c1ed07fc185fd237fbdf51aecaa8ed926ba6.tar.gz
fix: webui sessions do not persist system prompt (#1162)
Diffstat (limited to 'assets')
-rw-r--r--assets/playground.html3
1 files changed, 3 insertions, 0 deletions
diff --git a/assets/playground.html b/assets/playground.html
index 34379e4..fdcadbc 100644
--- a/assets/playground.html
+++ b/assets/playground.html
@@ -1001,6 +1001,9 @@
},
handleRoleChange() {
+ if (this.settings.prompt && !this.settings.role) {
+ return;
+ }
this.settings.prompt = this.roles.find(role => role.name === this.settings.role).prompt;
},