diff options
| author | sigoden <sigoden@gmail.com> | 2025-02-10 08:26:27 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-02-10 08:26:27 +0800 |
| commit | baf0c1ed07fc185fd237fbdf51aecaa8ed926ba6 (patch) | |
| tree | 59e073ae358c46a3df264131056739b43db9a53c /assets | |
| parent | d4087dbaf7208da5ae842ec5ba2e9c442bfa4f94 (diff) | |
| download | aichat-baf0c1ed07fc185fd237fbdf51aecaa8ed926ba6.tar.gz | |
fix: webui sessions do not persist system prompt (#1162)
Diffstat (limited to 'assets')
| -rw-r--r-- | assets/playground.html | 3 |
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; }, |
