clean up buttons
This commit is contained in:
parent
28764ba9b3
commit
59897ffe1e
|
@ -190,6 +190,11 @@
|
|||
return cname
|
||||
}
|
||||
|
||||
const setDirty = () => {
|
||||
chatSettings.isDirty = true
|
||||
|
||||
}
|
||||
|
||||
</script>
|
||||
|
||||
|
||||
|
@ -237,10 +242,9 @@
|
|||
</div>
|
||||
</header>
|
||||
<section class="modal-card-body">
|
||||
<!-- Below are the settings that OpenAI allows to be changed for the API calls. See the <a href="https://platform.openai.com/docs/api-reference/chat/create">OpenAI API docs</a> for more details.</p> -->
|
||||
{#key showSettingsModal}
|
||||
{#each settingsList as setting}
|
||||
<ChatSettingField on:refresh={refreshSettings} chat={chat} chatDefaults={chatDefaults} chatSettings={chatSettings} setting={setting} />
|
||||
<ChatSettingField on:refresh={refreshSettings} on:change={setDirty} chat={chat} chatDefaults={chatDefaults} chatSettings={chatSettings} setting={setting} />
|
||||
{/each}
|
||||
{/key}
|
||||
</section>
|
||||
|
|
|
@ -228,7 +228,7 @@
|
|||
<a
|
||||
href={'#'}
|
||||
title="Jump to summary"
|
||||
class="msg-summary-button button is-small is-info"
|
||||
class="msg-summary button is-small"
|
||||
on:click|preventDefault={() => {
|
||||
scrollToMessage(message.summarized)
|
||||
}}
|
||||
|
@ -240,7 +240,7 @@
|
|||
<a
|
||||
href={'#'}
|
||||
title="Jump to summarized"
|
||||
class="msg-summarized-button button is-small is-info"
|
||||
class="msg-summarized button is-small"
|
||||
on:click|preventDefault={() => {
|
||||
scrollToMessage(message.summary)
|
||||
}}
|
||||
|
@ -252,7 +252,7 @@
|
|||
<a
|
||||
href={'#'}
|
||||
title="Delete this message"
|
||||
class=" msg-delete-button button is-small is-warning"
|
||||
class=" msg-delete button is-small"
|
||||
on:click|preventDefault={() => {
|
||||
checkDelete()
|
||||
}}
|
||||
|
@ -267,8 +267,8 @@
|
|||
{#if !message.summarized}
|
||||
<a
|
||||
href={'#'}
|
||||
title="Truncate all and submit"
|
||||
class=" msg-delete-button button is-small is-danger"
|
||||
title="Truncate from here and submit"
|
||||
class=" msg-truncate button is-small"
|
||||
on:click|preventDefault={() => {
|
||||
checkTruncate()
|
||||
}}
|
||||
|
@ -284,7 +284,7 @@
|
|||
<a
|
||||
href={'#'}
|
||||
title={(message.suppress ? 'Uns' : 'S') + 'uppress message from submission'}
|
||||
class=" msg-delete-button button is-small is-info"
|
||||
class=" msg-supress button is-small"
|
||||
on:click|preventDefault={() => {
|
||||
setSuppress(!message.suppress)
|
||||
}}
|
||||
|
|
|
@ -62,7 +62,7 @@ const gptDefaults = {
|
|||
presence_penalty: 0,
|
||||
frequency_penalty: 0,
|
||||
logit_bias: null,
|
||||
user: undefined
|
||||
user: undefined,
|
||||
}
|
||||
|
||||
// Core set of defaults
|
||||
|
@ -81,12 +81,14 @@ const defaults:ChatSettings = {
|
|||
useSystemPrompt: false,
|
||||
systemPrompt: '',
|
||||
autoStartSession: false,
|
||||
trainingPrompts: []
|
||||
trainingPrompts: [],
|
||||
isDirty: false,
|
||||
}
|
||||
|
||||
const excludeFromProfile = {
|
||||
messages: true,
|
||||
user: true
|
||||
user: true,
|
||||
isDirty: true,
|
||||
}
|
||||
|
||||
const profileSetting: ChatSetting & SettingSelect = {
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
export let checkStateChange = writable(0) // Trigger for Chat
|
||||
export let showSetChatSettings = writable(false) //
|
||||
export let submitExitingPromptsNow = writable(false) // for them to go now. Will not submit anything in the input
|
||||
export let pinMainMenu = writable(false) // for them to go now. Will not submit anything in the input
|
||||
export let pinMainMenu = writable(false) // Show menu (for mobile use)
|
||||
|
||||
const chatDefaults = getChatDefaults()
|
||||
|
||||
|
|
|
@ -59,6 +59,7 @@
|
|||
systemPrompt: string;
|
||||
autoStartSession: boolean;
|
||||
trainingPrompts?: Message[];
|
||||
isDirty?: boolean;
|
||||
} & Request;
|
||||
|
||||
export type Chat = {
|
||||
|
|
Loading…
Reference in New Issue