Update original text when streaming per #168
This commit is contained in:
parent
94e3ef6ac3
commit
5918ccdd0f
|
@ -1,6 +1,6 @@
|
|||
<script lang="ts">
|
||||
import Code from './Code.svelte'
|
||||
import { createEventDispatcher, onMount } from 'svelte'
|
||||
import { afterUpdate, createEventDispatcher, onMount } from 'svelte'
|
||||
import { deleteMessage, chatsStorage, deleteSummaryMessage, truncateFromMessage, submitExitingPromptsNow, saveChatStore, continueMessage } from './Storage.svelte'
|
||||
import { getPrice } from './Stats.svelte'
|
||||
import SvelteMarkdown from 'svelte-markdown'
|
||||
|
@ -40,6 +40,10 @@
|
|||
defaultModel = chatSettings.model
|
||||
})
|
||||
|
||||
afterUpdate(() => {
|
||||
original = message.content
|
||||
})
|
||||
|
||||
const edit = () => {
|
||||
if (message.summarized || message.streaming) return
|
||||
editing = true
|
||||
|
|
|
@ -60,7 +60,7 @@ const gptDefaults = {
|
|||
n: 1,
|
||||
stream: true,
|
||||
stop: null,
|
||||
max_tokens: 512,
|
||||
max_tokens: 500,
|
||||
presence_penalty: 0,
|
||||
frequency_penalty: 0,
|
||||
logit_bias: null,
|
||||
|
@ -222,7 +222,7 @@ const summarySettings: ChatSetting[] = [
|
|||
name: 'Max Summary Size',
|
||||
title: 'Maximum number of tokens allowed for summary response.',
|
||||
min: 128,
|
||||
max: 2048,
|
||||
max: 512,
|
||||
step: 1,
|
||||
type: 'number',
|
||||
hide: (chatId) => getChatSettings(chatId).continuousChat !== 'summary'
|
||||
|
|
Loading…
Reference in New Issue