From fda784028d912acee11eaf833b6cc88b97f70c48 Mon Sep 17 00:00:00 2001 From: Mckay Wrigley Date: Tue, 18 Apr 2023 08:35:31 -0600 Subject: [PATCH] Add temp display (#596) * Made the Model Name Bar Sticky at the top of the Chat Window * Added Temp to the top bar display * barliens --------- Co-authored-by: Chris Wall --- components/Chat/Chat.tsx | 23 ++++++++++++----------- 1 file changed, 12 insertions(+), 11 deletions(-) diff --git a/components/Chat/Chat.tsx b/components/Chat/Chat.tsx index e618585..1bda61f 100644 --- a/components/Chat/Chat.tsx +++ b/components/Chat/Chat.tsx @@ -98,7 +98,7 @@ export const Chat = memo(({ stopConversationRef }: Props) => { messages: updatedConversation.messages, key: apiKey, prompt: updatedConversation.prompt, - temperature: updatedConversation.temperature + temperature: updatedConversation.temperature, }; const endpoint = getEndpoint(plugin); let body; @@ -425,22 +425,23 @@ export const Chat = memo(({ stopConversationRef }: Props) => { /> - handleUpdateConversation(selectedConversation, { - key: 'temperature', - value: temperature, - }) - } - /> + label="Temperature" + onChangeTemperature={(temperature) => + handleUpdateConversation(selectedConversation, { + key: 'temperature', + value: temperature, + }) + } + /> )} ) : ( <> -
- {t('Model')}: {selectedConversation?.model.name} +
+ {t('Model')}: {selectedConversation?.model.name} | {t('Temp')} + : {selectedConversation?.temperature} |