fix: gptCustom icon should show as same in model and message

This commit is contained in:
Wentao Lyu 2023-03-15 14:42:39 +08:00
parent 5d0b849930
commit 45ca0a8713
4 changed files with 15 additions and 10 deletions

View file

@ -5,27 +5,32 @@ const initialState = {
{
_id: '0',
name: 'ChatGPT',
value: 'chatgpt'
value: 'chatgpt',
model: 'chatgpt'
},
{
_id: '1',
name: 'CustomGPT',
value: 'chatgptCustom'
value: 'chatgptCustom',
model: 'chatgptCustom'
},
{
_id: '2',
name: 'BingAI',
value: 'bingai'
value: 'bingai',
model: 'bingai'
},
{
_id: '3',
name: 'Sydney',
value: 'sydney'
value: 'sydney',
model: 'sydney'
},
{
_id: '4',
name: 'ChatGPT',
value: 'chatgptBrowser'
value: 'chatgptBrowser',
model: 'chatgptBrowser'
},
],
modelMap: {},
@ -45,7 +50,8 @@ const currentSlice = createSlice({
models.slice(initialState.models.length).forEach((modelItem) => {
modelMap[modelItem.value] = {
chatGptLabel: modelItem.chatGptLabel,
promptPrefix: modelItem.promptPrefix
promptPrefix: modelItem.promptPrefix,
model: 'chatgptCustom'
};
});