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

code cleanup

Wentao Lyud76efa7874ae
diff --git a/api/models/schema/convoSchema.js b/api/models/schema/convoSchema.js
index 7c0e3d493c..2506953299 100644
--- a/api/models/schema/convoSchema.js
+++ b/api/models/schema/convoSchema.js
@@ -86,8 +86,7 @@ const convoSchema = mongoose.Schema(
toneStyle: {
type: String,
default: null
- },
- suggestions: [{ type: String }]
+ }
},
{ timestamps: true }
);
diff --git a/client/src/components/Input/OpenAIOptions/Settings.jsx b/client/src/components/Input/OpenAIOptions/Settings.jsx
index 3e603c0fcf..8924557eea 100644
--- a/client/src/components/Input/OpenAIOptions/Settings.jsx
+++ b/client/src/components/Input/OpenAIOptions/Settings.jsx
@@ -31,33 +31,16 @@ function Settings(props) {
setPresP
} = props;
- // temperature
- // top_p
- // presence_penalty
- // frequency_penalty
- // chatGptLabel
- // promptPrefix
- // const endpointsConfig = useRecoilValue(store.endpointsConfig);
-
- // const availableModels = endpointsConfig?.['openAI']?.['availableModels'] || [];
-
- // const [model, setModel] = useState('text-davinci-003');
- // const [chatGptLabel, setChatGptLabel] = useState('');
- // const [promptPrefix, setPromptPrefix] = useState('');
- // const [temperature, setTemperature] = useState(1);
- // // const [maxTokens, setMaxTokens] = useState(2048);
- // const [topP, setTopP] = useState(1);
- // const [freqP, setFreqP] = useState(0);
- // const [presP, setPresP] = useState(0);
- // const textareaRef = useRef(null);
- // const inputRef = useRef(null);
-
return (
<>
<div className="grid gap-6 sm:grid-cols-2">
<div className="col-span-1 flex flex-col items-center justify-start gap-6">
<div className="grid w-full items-center gap-2">
- <ModelDropDown model={model} setModel={setModel} endpoint="openAI"/>
+ <ModelDropDown
+ model={model}
+ setModel={setModel}
+ endpoint="openAI"
+ />
{/* <Label
htmlFor="model"
className="text-left text-sm font-medium"