mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-17 00:40:14 +01:00
Merge branch 'feat-endpoint-style-structure' of https://github.com/danny-avila/chatgpt-clone into feat-endpoint-style-structure
This commit is contained in:
commit
7487b59de7
2 changed files with 6 additions and 24 deletions
|
|
@ -86,8 +86,7 @@ const convoSchema = mongoose.Schema(
|
|||
toneStyle: {
|
||||
type: String,
|
||||
default: null
|
||||
},
|
||||
suggestions: [{ type: String }]
|
||||
}
|
||||
},
|
||||
{ timestamps: true }
|
||||
);
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue