improve custom model selection ux

This commit is contained in:
Daniel Avila 2023-03-06 21:12:36 -05:00
parent d93282640c
commit 6d757ff91f
6 changed files with 49 additions and 20 deletions

View file

@ -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;
}
}