Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revert "Merge pull request ChatGPTNextWeb#5553 from ConnectAI-E/fix/d…
Browse files Browse the repository at this point in the history
…efault-model"

This reverts commit f9d6f4f, reversing
changes made to a13bd62.
Aiden-Coding committed Sep 27, 2024
1 parent 62009ae commit 117a64c
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions app/store/access.ts
Original file line number Diff line number Diff line change
@@ -211,13 +211,10 @@ export const useAccessStore = createPersistStore(
})
.then((res) => res.json())
.then((res) => {
const defaultModel = res.defaultModel ?? "";
if (defaultModel !== "") {
const [model, providerName] = defaultModel.split("@");
DEFAULT_CONFIG.modelConfig.model = model;
DEFAULT_CONFIG.modelConfig.providerName = providerName;
}

// Set default model from env request
let defaultModel = res.defaultModel ?? "";
if (defaultModel !== "")
DEFAULT_CONFIG.modelConfig.model = defaultModel;
return res;
})
.then((res: DangerConfig) => {

0 comments on commit 117a64c

Please sign in to comment.