From ab2833e626ef400a35124c4d1248f67b903c42f8 Mon Sep 17 00:00:00 2001 From: Jason Date: Sun, 2 Nov 2025 23:40:11 +0800 Subject: [PATCH] feat(provider): enable endpoint management for aggregator providers Allow aggregator category providers (like AiHubMix) to access the endpoint speed test and management features, previously limited to third-party and custom providers only. --- src/components/providers/forms/ProviderForm.tsx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/components/providers/forms/ProviderForm.tsx b/src/components/providers/forms/ProviderForm.tsx index 0c5bd59..ebd369d 100644 --- a/src/components/providers/forms/ProviderForm.tsx +++ b/src/components/providers/forms/ProviderForm.tsx @@ -336,9 +336,11 @@ export function ProviderForm({ ); }, [groupedPresets]); - // 判断是否显示端点测速(仅第三方和自定义类别) + // 判断是否显示端点测速(聚合服务、第三方和自定义类别) const shouldShowSpeedTest = - category === "third_party" || category === "custom"; + category === "aggregator" || + category === "third_party" || + category === "custom"; // 使用 API Key 链接 hook (Claude) const {