diff --git a/src/pages/OAuthPage.tsx b/src/pages/OAuthPage.tsx index 9e35a58..557884b 100644 --- a/src/pages/OAuthPage.tsx +++ b/src/pages/OAuthPage.tsx @@ -59,11 +59,10 @@ const PROVIDERS: { id: OAuthProvider; titleKey: string; hintKey: string; urlLabe { id: 'anthropic', titleKey: 'auth_login.anthropic_oauth_title', hintKey: 'auth_login.anthropic_oauth_hint', urlLabelKey: 'auth_login.anthropic_oauth_url_label', icon: iconClaude }, { id: 'antigravity', titleKey: 'auth_login.antigravity_oauth_title', hintKey: 'auth_login.antigravity_oauth_hint', urlLabelKey: 'auth_login.antigravity_oauth_url_label', icon: iconAntigravity }, { id: 'gemini-cli', titleKey: 'auth_login.gemini_cli_oauth_title', hintKey: 'auth_login.gemini_cli_oauth_hint', urlLabelKey: 'auth_login.gemini_cli_oauth_url_label', icon: iconGemini }, - { id: 'qwen', titleKey: 'auth_login.qwen_oauth_title', hintKey: 'auth_login.qwen_oauth_hint', urlLabelKey: 'auth_login.qwen_oauth_url_label', icon: iconQwen }, - { id: 'iflow', titleKey: 'auth_login.iflow_oauth_title', hintKey: 'auth_login.iflow_oauth_hint', urlLabelKey: 'auth_login.iflow_oauth_url_label', icon: iconIflow } + { id: 'qwen', titleKey: 'auth_login.qwen_oauth_title', hintKey: 'auth_login.qwen_oauth_hint', urlLabelKey: 'auth_login.qwen_oauth_url_label', icon: iconQwen } ]; -const CALLBACK_SUPPORTED: OAuthProvider[] = ['codex', 'anthropic', 'antigravity', 'gemini-cli', 'iflow']; +const CALLBACK_SUPPORTED: OAuthProvider[] = ['codex', 'anthropic', 'antigravity', 'gemini-cli']; const getProviderI18nPrefix = (provider: OAuthProvider) => provider.replace('-', '_'); const getAuthKey = (provider: OAuthProvider, suffix: string) => `auth_login.${getProviderI18nPrefix(provider)}_${suffix}`; diff --git a/src/services/api/oauth.ts b/src/services/api/oauth.ts index 5e48472..456aafd 100644 --- a/src/services/api/oauth.ts +++ b/src/services/api/oauth.ts @@ -9,8 +9,7 @@ export type OAuthProvider = | 'anthropic' | 'antigravity' | 'gemini-cli' - | 'qwen' - | 'iflow'; + | 'qwen'; export interface OAuthStartResponse { url: string; @@ -30,7 +29,7 @@ export interface IFlowCookieAuthResponse { type?: string; } -const WEBUI_SUPPORTED: OAuthProvider[] = ['codex', 'anthropic', 'antigravity', 'gemini-cli', 'iflow']; +const WEBUI_SUPPORTED: OAuthProvider[] = ['codex', 'anthropic', 'antigravity', 'gemini-cli']; const CALLBACK_PROVIDER_MAP: Partial> = { 'gemini-cli': 'gemini' }; diff --git a/src/types/oauth.ts b/src/types/oauth.ts index 35892b2..edcc95f 100644 --- a/src/types/oauth.ts +++ b/src/types/oauth.ts @@ -9,8 +9,7 @@ export type OAuthProvider = | 'anthropic' | 'antigravity' | 'gemini-cli' - | 'qwen' - | 'iflow'; + | 'qwen'; // OAuth 流程状态 export interface OAuthFlow { diff --git a/src/utils/constants.ts b/src/utils/constants.ts index ef2594c..eb1b650 100644 --- a/src/utils/constants.ts +++ b/src/utils/constants.ts @@ -42,16 +42,14 @@ export const OAUTH_CARD_IDS = [ 'anthropic-oauth-card', 'antigravity-oauth-card', 'gemini-cli-oauth-card', - 'qwen-oauth-card', - 'iflow-oauth-card' + 'qwen-oauth-card' ]; export const OAUTH_PROVIDERS = { CODEX: 'codex', ANTHROPIC: 'anthropic', ANTIGRAVITY: 'antigravity', GEMINI_CLI: 'gemini-cli', - QWEN: 'qwen', - IFLOW: 'iflow' + QWEN: 'qwen' } as const; // API 端点