fix: models sort in model page (#13334)

This commit is contained in:
zxhlyh 2025-02-07 17:30:04 +08:00 committed by GitHub
parent d4a09805a3
commit fec3bb4469
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -275,6 +275,8 @@ export const useMarketplaceAllPlugins = (providers: ModelProvider[], searchText:
category: PluginType.model,
exclude,
type: 'plugin',
sortBy: 'install_count',
sortOrder: 'DESC',
})
}
else {
@ -284,6 +286,8 @@ export const useMarketplaceAllPlugins = (providers: ModelProvider[], searchText:
type: 'plugin',
pageSize: 1000,
exclude,
sortBy: 'install_count',
sortOrder: 'DESC',
})
}
}, [queryPlugins, queryPluginsWithDebounced, searchText, exclude])