Skip to content

Commit

Permalink
fix: default is forced to set gpt-3.5-turbo if no server default mode…
Browse files Browse the repository at this point in the history
…l have been set
  • Loading branch information
skymkmk committed Sep 15, 2024
1 parent 9e1e0a7 commit 36a0c7b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/store/access.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) => {
Expand Down

0 comments on commit 36a0c7b

Please sign in to comment.