Skip to content

Enhanced ChatGPT Clone: Features Agents, MCP, Skills, DeepSeek, Anthropic, AWS, OpenAI, Responses API, Azure, Groq, o1, GPT-5, Mistral, OpenRouter, Vertex AI, Gemini, Artifacts, AI model switching, message search, Code Interpreter, langchain, DALL-E-3, OpenAPI Actions, Functions, Secure Multi-User Auth, Presets, open-source for self-hosting. Active

fix(Settings.jsx): change min value of Slider component to -2 to allow negative values for presP variable

Daniel Avila064dfb53368a
diff --git a/client/src/components/Input/OpenAIOptions/Settings.jsx b/client/src/components/Input/OpenAIOptions/Settings.jsx
index f42ffda52d..d1778ad0c8 100644
--- a/client/src/components/Input/OpenAIOptions/Settings.jsx
+++ b/client/src/components/Input/OpenAIOptions/Settings.jsx
@@ -218,12 +218,12 @@ function Settings() {
value={[presP]}
onValueChange={value => setPresP(value)}
max={2}
- min={0}
+ min={-2}
step={0.01}
className="w-full opacity-0"
/>
<Slider
- value={[0]}
+ value={[presP]}
onValueChange={value => setPresP(value)}
max={2}
min={-2}