diff --git a/web/app/components/plugins/plugin-detail-panel/agent-strategy-list.tsx b/web/app/components/plugins/plugin-detail-panel/agent-strategy-list.tsx index 827a28a95e..fafcf1439c 100644 --- a/web/app/components/plugins/plugin-detail-panel/agent-strategy-list.tsx +++ b/web/app/components/plugins/plugin-detail-panel/agent-strategy-list.tsx @@ -18,6 +18,13 @@ const AgentStrategyList = ({ const providerKey = `${detail.plugin_id}/${providerBriefInfo.name}` const { data: strategyProviderDetail } = useStrategyProviderDetail(providerKey) + const providerDetail = useMemo(() => { + return { + ...strategyProviderDetail?.declaration.identity, + tenant_id: detail.tenant_id, + } + }, [detail.tenant_id, strategyProviderDetail?.declaration.identity]) + const strategyList = useMemo(() => { if (!strategyProviderDetail) return [] @@ -39,7 +46,7 @@ const AgentStrategyList = ({ {strategyList.map(strategyDetail => ( ))} diff --git a/web/app/components/plugins/plugin-detail-panel/strategy-detail.tsx b/web/app/components/plugins/plugin-detail-panel/strategy-detail.tsx index 2b58f620b1..a7f1d84071 100644 --- a/web/app/components/plugins/plugin-detail-panel/strategy-detail.tsx +++ b/web/app/components/plugins/plugin-detail-panel/strategy-detail.tsx @@ -16,6 +16,7 @@ import type { } from '@/app/components/plugins/types' import type { Locale } from '@/i18n' import { useRenderI18nObject } from '@/hooks/use-i18n' +import { API_PREFIX } from '@/config' import cn from '@/utils/classnames' type Props = { @@ -23,6 +24,7 @@ type Props = { author: string name: string description: Record + tenant_id: string icon: string label: Record tags: string[] @@ -94,7 +96,7 @@ const StrategyDetail: FC = ({ BACK
- +
{getValueFromI18nObject(provider.label)}
{getValueFromI18nObject(detail.identity.label)}
@@ -135,7 +137,7 @@ const StrategyDetail: FC = ({
OUTPUT
{outputSchema.length > 0 && ( -
+
{outputSchema.map((outputItem, index) => (
diff --git a/web/app/components/plugins/plugin-detail-panel/strategy-item.tsx b/web/app/components/plugins/plugin-detail-panel/strategy-item.tsx index 8cdb7315d8..fd2fea99e0 100644 --- a/web/app/components/plugins/plugin-detail-panel/strategy-item.tsx +++ b/web/app/components/plugins/plugin-detail-panel/strategy-item.tsx @@ -13,6 +13,7 @@ type Props = { author: string name: string description: Record + tenant_id: string icon: string label: Record tags: string[] diff --git a/web/app/components/plugins/plugin-detail-panel/tool-selector/index.tsx b/web/app/components/plugins/plugin-detail-panel/tool-selector/index.tsx index e20673f7fa..d00b65f16d 100644 --- a/web/app/components/plugins/plugin-detail-panel/tool-selector/index.tsx +++ b/web/app/components/plugins/plugin-detail-panel/tool-selector/index.tsx @@ -280,7 +280,7 @@ const ToolSelector: FC = ({ {currentProvider && currentProvider.type === CollectionType.builtIn && currentProvider.allow_delete && (
-
{t('plugin.detailPanel.toolSelector.auth')}
+
{t('plugin.detailPanel.toolSelector.auth')}
@@ -312,7 +312,7 @@ const ToolSelector: FC = ({ {currentToolParams.length > 0 && currentProvider?.is_team_authorization && (
-
{t('plugin.detailPanel.toolSelector.settings')}
+
{t('plugin.detailPanel.toolSelector.settings')}