fix nasty bug
This commit is contained in:
parent
40828f1568
commit
317bc9b6f3
|
@ -253,7 +253,7 @@ const Home: React.FC<HomeProps> = ({
|
|||
code: data.error?.code,
|
||||
messageLines: [data.error?.message],
|
||||
});
|
||||
} catch (e) { }
|
||||
} catch (e) {}
|
||||
setModelError(error);
|
||||
return;
|
||||
}
|
||||
|
@ -380,7 +380,12 @@ const Home: React.FC<HomeProps> = ({
|
|||
id: uuidv4(),
|
||||
name: `${t('New Conversation')}`,
|
||||
messages: [],
|
||||
model: lastConversation?.model || defaultModelId,
|
||||
model: lastConversation?.model || {
|
||||
id: OpenAIModels[defaultModelId].id,
|
||||
name: OpenAIModels[defaultModelId].name,
|
||||
maxLength: OpenAIModels[defaultModelId].maxLength,
|
||||
tokenLimit: OpenAIModels[defaultModelId].tokenLimit,
|
||||
},
|
||||
prompt: DEFAULT_SYSTEM_PROMPT,
|
||||
folderId: null,
|
||||
};
|
||||
|
@ -524,8 +529,6 @@ const Home: React.FC<HomeProps> = ({
|
|||
savePrompts(updatedPrompts);
|
||||
};
|
||||
|
||||
const handleCreatePromptFolder = (name: string) => { };
|
||||
|
||||
// EFFECTS --------------------------------------------
|
||||
|
||||
useEffect(() => {
|
||||
|
|
Loading…
Reference in New Issue