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} |