mirror of
https://github.com/Yidadaa/ChatGPT-Next-Web.git
synced 2025-08-08 23:20:28 +08:00
fix: #2280 auto-detect models from 'list/models'
This commit is contained in:
@@ -117,6 +117,10 @@ export const useAppConfig = create<ChatConfigStore>()(
|
||||
},
|
||||
|
||||
mergeModels(newModels) {
|
||||
if (!newModels || newModels.length === 0) {
|
||||
return;
|
||||
}
|
||||
|
||||
const oldModels = get().models;
|
||||
const modelMap: Record<string, LLMModel> = {};
|
||||
|
||||
|
Reference in New Issue
Block a user