fix: #1815 refuse to serve when disable gpt4

This commit is contained in:
Yidadaa
2023-06-07 01:02:01 +08:00
parent 2ebc26953d
commit 37da759fd5
3 changed files with 24 additions and 11 deletions

View File

@@ -68,14 +68,6 @@ export const ALL_MODELS = [
name: "gpt-4-32k-0314",
available: ENABLE_GPT4,
},
{
name: "gpt-4-mobile",
available: ENABLE_GPT4,
},
{
name: "text-davinci-002-render-sha-mobile",
available: true,
},
{
name: "gpt-3.5-turbo",
available: true,

View File

@@ -84,7 +84,7 @@ export const useUpdateStore = create<UpdateStore>()(
}));
}
} catch (e) {
showToast((e as Error).message);
console.error((e as Error).message);
}
},
}),