diff --git a/api/server/services/Config/getEndpointsConfig.js b/api/server/services/Config/getEndpointsConfig.js index 82c8f01abe..8804fb7d3d 100644 --- a/api/server/services/Config/getEndpointsConfig.js +++ b/api/server/services/Config/getEndpointsConfig.js @@ -19,7 +19,11 @@ async function getEndpointsConfig(req) { const cache = getLogStores(CacheKeys.CONFIG_STORE); const cachedEndpointsConfig = await cache.get(CacheKeys.ENDPOINT_CONFIG); if (cachedEndpointsConfig) { - return cachedEndpointsConfig; + if (cachedEndpointsConfig.gptPlugins) { + await cache.delete(CacheKeys.ENDPOINT_CONFIG); + } else { + return cachedEndpointsConfig; + } } const appConfig = req.config ?? (await getAppConfig({ role: req.user?.role }));