feat: update RAG recommended plugins hook to accept type parameter (#29735)
This commit is contained in:
@@ -37,7 +37,7 @@ const useRefreshPluginList = () => {
|
||||
if ((manifest && PluginCategoryEnum.tool.includes(manifest.category)) || refreshAllType) {
|
||||
invalidateAllToolProviders()
|
||||
invalidateAllBuiltInTools()
|
||||
invalidateRAGRecommendedPlugins()
|
||||
invalidateRAGRecommendedPlugins('tool')
|
||||
// TODO: update suggested tools. It's a function in hook useMarketplacePlugins,handleUpdatePlugins
|
||||
}
|
||||
|
||||
|
||||
@@ -52,7 +52,7 @@ const RAGToolRecommendations = ({
|
||||
data: ragRecommendedPlugins,
|
||||
isLoading: isLoadingRAGRecommendedPlugins,
|
||||
isFetching: isFetchingRAGRecommendedPlugins,
|
||||
} = useRAGRecommendedPlugins()
|
||||
} = useRAGRecommendedPlugins('tool')
|
||||
|
||||
const recommendedPlugins = useMemo(() => {
|
||||
if (ragRecommendedPlugins)
|
||||
|
||||
Reference in New Issue
Block a user