fix: default is forced to set gpt-3.5-turbo if no server default model have been set

This commit is contained in:
skymkmk 2024-09-16 02:07:22 +08:00
parent 9e1e0a7252
commit 36a0c7b8a3
No known key found for this signature in database
GPG Key ID: 6F4CA5A97C68BD71
1 changed files with 2 additions and 2 deletions

View File

@ -204,8 +204,8 @@ export const useAccessStore = createPersistStore(
.then((res) => {
// Set default model from env request
let defaultModel = res.defaultModel ?? "";
DEFAULT_CONFIG.modelConfig.model =
defaultModel !== "" ? defaultModel : "gpt-3.5-turbo";
if (defaultModel !== "")
DEFAULT_CONFIG.modelConfig.model = defaultModel;
return res;
})
.then((res: DangerConfig) => {