feat: hide GitHub Copilot provider preset and auth tab

Users reported that Copilot support causes excessively fast token
consumption. Temporarily hide the feature by adding a `hidden` field
to ProviderPreset interface and commenting out the auth center tab
in settings. Existing Copilot providers in DB still work via proxy.
This commit is contained in:
Jason
2026-04-02 17:15:11 +08:00
parent bae369b0dc
commit fee8577032
3 changed files with 15 additions and 7 deletions
+4
View File
@@ -57,6 +57,9 @@ export interface ProviderPreset {
// 是否需要 OAuth 认证(而非 API Key
requiresOAuth?: boolean;
// 是否在 UI 中隐藏该预设(预设仍存在,仅不在列表中显示)
hidden?: boolean;
}
export const providerPresets: ProviderPreset[] = [
@@ -704,6 +707,7 @@ export const providerPresets: ProviderPreset[] = [
requiresOAuth: true,
icon: "github",
iconColor: "#000000",
hidden: true, // 临时隐藏:用户反馈消耗速度过快
},
{
name: "Nvidia",