Default model prefer qwen-72b-chat
This commit is contained in:
parent
43e5ceade3
commit
4d5fff1d05
@ -176,7 +176,8 @@ export const ConfigStore = types
|
||||
const modelsChat = self.modelsTemplate.filter(model => model.category === "chat");
|
||||
|
||||
if (modelsChat.length > 0 && modelsChat.find((item) => item.name === newConfig.default_model) === undefined) {
|
||||
newConfig.default_model = modelsChat[0].name;
|
||||
const defaultModelName = 'qwen-72b-chat'
|
||||
newConfig.default_model = modelsChat.some(x => x.name === defaultModelName) ? defaultModelName : modelsChat[0].name;
|
||||
needUpdate = true;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user