diff --git a/src/config/index.mjs b/src/config/index.mjs index a8fdc3b..777822d 100644 --- a/src/config/index.mjs +++ b/src/config/index.mjs @@ -105,6 +105,7 @@ export const defaultConfig = { maxResponseTokenLength: 1000, maxConversationContextLength: 9, + temperature: 1, customChatGptWebApiUrl: 'https://chat.openai.com', customChatGptWebApiPath: '/backend-api/conversation', customOpenAiApiUrl: 'https://api.openai.com', diff --git a/src/popup/Popup.jsx b/src/popup/Popup.jsx index 5422c4c..fbb74f9 100644 --- a/src/popup/Popup.jsx +++ b/src/popup/Popup.jsx @@ -33,6 +33,7 @@ import { isMobile, isSafari, openUrl, + parseFloatWithClamp, parseIntWithClamp, } from '../utils/index.mjs' import { useTranslation } from 'react-i18next' @@ -432,9 +433,9 @@ function AdvancedPart({ config, updateConfig }) { return ( <> +