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
TypeScript aianthropicartifactsawsazurechatgptchatgpt-cloneclaudeclonedeepseekgeminigooglegpt-5librechatmcpo1openairesponses-apivisionwebui
feat: add default text. fix: slider should set a number
Wentao Lyu099210c10e4c
diff --git a/client/src/components/Input/OpenAIOptions/Settings.jsx b/client/src/components/Input/OpenAIOptions/Settings.jsxindex b72b861463..8f45b07e93 100644--- a/client/src/components/Input/OpenAIOptions/Settings.jsx+++ b/client/src/components/Input/OpenAIOptions/Settings.jsx@@ -79,13 +79,13 @@ function Settings(props) {htmlFor="chatGptLabel"className="text-left text-sm font-medium">- Custom Name+ Custom Name <small className="opacity-40">(default: blank)</small></Label><Inputid="chatGptLabel"- value={chatGptLabel}+ value={chatGptLabel || ''}// ref={inputRef}- onChange={e => setChatGptLabel(e.target.value)}+ onChange={e => setChatGptLabel(e.target.value || null)}placeholder="Set a custom name for ChatGPT"className={cn(defaultTextProps,@@ -98,12 +98,12 @@ function Settings(props) {htmlFor="promptPrefix"className="text-left text-sm font-medium">- Prompt Prefix+ Prompt Prefix <small className="opacity-40">(default: blank)</small></Label><TextareaAutosizeid="promptPrefix"- value={promptPrefix}- onChange={e => setPromptPrefix(e.target.value)}+ value={promptPrefix || ''}+ onChange={e => setPromptPrefix(e.target.value || null)}placeholder="Set custom instructions. Defaults to: 'You are ChatGPT, a large language model trained by OpenAI.'"className={cn(defaultTextProps,@@ -129,7 +129,7 @@ function Settings(props) {htmlFor="chatGptLabel"className="text-left text-sm font-medium">- Temperature+ Temperature <small className="opacity-40">(default: 1)</small></Label><Inputid="temp-int"@@ -143,7 +143,7 @@ function Settings(props) {</div><Slidervalue={[temperature]}- onValueChange={value => setTemperature(value)}+ onValueChange={value => setTemperature(value[0])}max={2}min={0}step={0.01}@@ -177,7 +177,7 @@ function Settings(props) {</div><Slidervalue={[maxTokens]}- onValueChange={value => setMaxTokens(value)}+ onValueChange={value => setMaxTokens(value[0])}max={2048} // should be dynamic to the currently selected modelmin={1}step={1}@@ -197,7 +197,7 @@ function Settings(props) {htmlFor="chatGptLabel"className="text-left text-sm font-medium">- Top P+ Top P <small className="opacity-40">(default: 1)</small></Label><Inputid="top-p-int"@@ -211,7 +211,7 @@ function Settings(props) {</div><Slidervalue={[topP]}- onValueChange={value => setTopP(value)}+ onValueChange={value => setTopP(value[0])}max={1}min={0}step={0.01}@@ -231,7 +231,7 @@ function Settings(props) {htmlFor="chatGptLabel"className="text-left text-sm font-medium">- Frequency Penalty+ Frequency Penalty <small className="opacity-40">(default: 0)</small></Label><Inputid="freq-penalty-int"@@ -245,7 +245,7 @@ function Settings(props) {</div><Slidervalue={[freqP]}- onValueChange={value => setFreqP(value)}+ onValueChange={value => setFreqP(value[0])}max={2}min={-2}step={0.01}@@ -265,7 +265,7 @@ function Settings(props) {htmlFor="chatGptLabel"className="text-left text-sm font-medium">- Presence Penalty+ Presence Penalty <small className="opacity-40">(default: 0)</small></Label><Inputid="pres-penalty-int"@@ -279,7 +279,7 @@ function Settings(props) {</div><Slidervalue={[presP]}- onValueChange={value => setPresP(value)}+ onValueChange={value => setPresP(value[0])}max={2}min={-2}step={0.01}