fix: default is forced to set gpt-3.5-turbo if no server default model have been set
This commit is contained in:
parent
9e1e0a7252
commit
36a0c7b8a3
|
@ -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) => {
|
||||
|
|
Loading…
Reference in New Issue