mirror of
https://github.com/morgan9e/chatgpt-web
synced 2026-04-13 16:04:05 +09:00
auto apply system prompt changes to current chat
This commit is contained in:
@@ -24,8 +24,8 @@
|
|||||||
faDownload,
|
faDownload,
|
||||||
faUpload,
|
faUpload,
|
||||||
faSquarePlus,
|
faSquarePlus,
|
||||||
faRotateLeft,
|
faRotateLeft
|
||||||
faCheckCircle
|
// faCheckCircle
|
||||||
} from '@fortawesome/free-solid-svg-icons/index'
|
} from '@fortawesome/free-solid-svg-icons/index'
|
||||||
import { exportProfileAsJSON } from './Export.svelte'
|
import { exportProfileAsJSON } from './Export.svelte'
|
||||||
import { onMount, afterUpdate } from 'svelte'
|
import { onMount, afterUpdate } from 'svelte'
|
||||||
@@ -75,6 +75,7 @@
|
|||||||
originalProfile = ''
|
originalProfile = ''
|
||||||
originalSettings = {} as ChatSettings
|
originalSettings = {} as ChatSettings
|
||||||
showProfileMenu = false
|
showProfileMenu = false
|
||||||
|
applyToChat()
|
||||||
$checkStateChange++
|
$checkStateChange++
|
||||||
showSettingsModal = 0
|
showSettingsModal = 0
|
||||||
}
|
}
|
||||||
@@ -294,9 +295,9 @@
|
|||||||
<a href={'#'} class="dropdown-item" on:click|preventDefault={startNewChat}>
|
<a href={'#'} class="dropdown-item" on:click|preventDefault={startNewChat}>
|
||||||
<span class="menu-icon"><Fa icon={faSquarePlus}/></span> Start New Chat from Current
|
<span class="menu-icon"><Fa icon={faSquarePlus}/></span> Start New Chat from Current
|
||||||
</a>
|
</a>
|
||||||
<a href={'#'} class="dropdown-item" on:click|preventDefault={applyToChat}>
|
<!-- <a href={'#'} class="dropdown-item" on:click|preventDefault={applyToChat}>
|
||||||
<span class="menu-icon"><Fa icon={faCheckCircle}/></span> Apply Prompts to Current Chat
|
<span class="menu-icon"><Fa icon={faCheckCircle}/></span> Apply Prompts to Current Chat
|
||||||
</a>
|
</a> -->
|
||||||
<hr class="dropdown-divider">
|
<hr class="dropdown-divider">
|
||||||
<a href={'#'}
|
<a href={'#'}
|
||||||
class="dropdown-item"
|
class="dropdown-item"
|
||||||
|
|||||||
Reference in New Issue
Block a user