From 5fa6d4182a6b7d514a93cf9d04452572e23f084f Mon Sep 17 00:00:00 2001 From: heimoshuiyu Date: Sat, 8 Jul 2023 15:14:46 +0800 Subject: [PATCH] fix args copy --- src/chatbox.tsx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/chatbox.tsx b/src/chatbox.tsx index 63e9116..a16d025 100644 --- a/src/chatbox.tsx +++ b/src/chatbox.tsx @@ -192,6 +192,10 @@ export default function ChatBOX(props: { client.apiEndpoint = chatStore.apiEndpoint; client.sysMessageContent = chatStore.systemMessageContent; client.tokens_margin = chatStore.tokenMargin; + client.temperature = chatStore.temperature; + client.top_p = chatStore.top_p; + client.frequency_penalty = chatStore.frequency_penalty; + client.presence_penalty = chatStore.presence_penalty; client.messages = chatStore.history // only copy non hidden message .filter(({ hide }) => !hide)