mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-19 09:50:15 +01:00
improve custom model selection ux
This commit is contained in:
parent
d93282640c
commit
6d757ff91f
6 changed files with 49 additions and 20 deletions
|
|
@ -6,7 +6,7 @@ const initialState = {
|
|||
model: 'chatgpt',
|
||||
promptPrefix: '',
|
||||
chatGptLabel: '',
|
||||
customModel: null
|
||||
customModel: ''
|
||||
};
|
||||
|
||||
const currentSlice = createSlice({
|
||||
|
|
@ -27,6 +27,7 @@ const currentSlice = createSlice({
|
|||
state.chatGptLabel = action.payload.chatGptLabel;
|
||||
},
|
||||
setCustomModel: (state, action) => {
|
||||
console.log('setCustomModel', action.payload);
|
||||
state.customModel = action.payload;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue