diff --git a/web/app/components/plugins/marketplace/list/card-wrapper.tsx b/web/app/components/plugins/marketplace/list/card-wrapper.tsx index d9eaa55a16..52538a0bae 100644 --- a/web/app/components/plugins/marketplace/list/card-wrapper.tsx +++ b/web/app/components/plugins/marketplace/list/card-wrapper.tsx @@ -21,7 +21,7 @@ const CardWrapper = ({ footer={ tag.name)} /> } /> diff --git a/web/app/components/plugins/marketplace/utils.ts b/web/app/components/plugins/marketplace/utils.ts index 437bb2074e..99b34fa570 100644 --- a/web/app/components/plugins/marketplace/utils.ts +++ b/web/app/components/plugins/marketplace/utils.ts @@ -14,14 +14,14 @@ export const getMarketplaceCollectionsAndPlugins = async (query?: CollectionsAnd let marketplaceCollections = [] as MarketplaceCollection[] let marketplaceCollectionPluginsMap = {} as Record try { - const marketplaceCollectionsData = await globalThis.fetch(`${MARKETPLACE_API_PREFIX}/collections`) + const marketplaceCollectionsData = await globalThis.fetch(`${MARKETPLACE_API_PREFIX}/collections`, { cache: 'no-store' }) const marketplaceCollectionsDataJson = await marketplaceCollectionsData.json() marketplaceCollections = marketplaceCollectionsDataJson.data.collections await Promise.all(marketplaceCollections.map(async (collection: MarketplaceCollection) => { let url = `${MARKETPLACE_API_PREFIX}/collections/${collection.name}/plugins` if (query?.category) url += `?category=${query.category}` - const marketplaceCollectionPluginsData = await globalThis.fetch(url) + const marketplaceCollectionPluginsData = await globalThis.fetch(url, { cache: 'no-store' }) const marketplaceCollectionPluginsDataJson = await marketplaceCollectionPluginsData.json() const plugins = marketplaceCollectionPluginsDataJson.data.plugins.map((plugin: Plugin) => { return { diff --git a/web/app/components/plugins/types.ts b/web/app/components/plugins/types.ts index e29dc62484..9252264efd 100644 --- a/web/app/components/plugins/types.ts +++ b/web/app/components/plugins/types.ts @@ -4,8 +4,8 @@ import type { Locale } from '@/i18n' export enum PluginType { tool = 'tools', - model = 'model', - extension = 'extension', + model = 'models', + extension = 'endpoints', } export enum PluginSource { @@ -117,6 +117,7 @@ export type Plugin = { endpoint: { settings: CredentialFormSchemaBase[] } + tags: { name: string }[] } export enum PermissionType {