fix: add deprecation warning for Gemini CLI provider (closes #362) (#406)

This commit is contained in:
Anurag Saxena
2026-03-26 23:41:35 -04:00
committed by GitHub
parent ade3f57d4c
commit 2f0fd348c5
2 changed files with 8 additions and 1 deletions

View File

@@ -489,6 +489,7 @@ export default function ProvidersPage() {
function ProviderCard({ providerId, provider, stats, authType, onToggle }) {
const { connected, error, errorCode, errorTime, allDisabled } = stats;
const isDeprecated = !!provider.deprecated;
const dotColors = {
free: "bg-green-500",
@@ -571,6 +572,12 @@ function ProviderCard({ providerId, provider, stats, authType, onToggle }) {
)}
</div>
</div>
{isDeprecated && (
<div className="mt-2 flex items-start gap-1.5 px-2 py-1.5 rounded-md bg-amber-500/10 border border-amber-500/20 text-amber-600 dark:text-amber-400">
<span className="material-symbols-outlined text-[14px] mt-0.5 shrink-0">warning</span>
<p className="text-[10px] leading-snug">{provider.deprecationNotice}</p>
</div>
)}
</Card>
</Link>
);

View File

@@ -4,7 +4,7 @@
export const FREE_PROVIDERS = {
iflow: { id: "iflow", alias: "if", name: "iFlow AI", icon: "water_drop", color: "#6366F1" },
qwen: { id: "qwen", alias: "qw", name: "Qwen Code", icon: "psychology", color: "#10B981" },
"gemini-cli": { id: "gemini-cli", alias: "gc", name: "Gemini CLI", icon: "terminal", color: "#4285F4" },
"gemini-cli": { id: "gemini-cli", alias: "gc", name: "Gemini CLI", icon: "terminal", color: "#4285F4", deprecated: true, deprecationNotice: "Google has tightened Gemini CLI abuse detection and restricted Pro models to paid accounts (Mar 25, 2026). Using this provider may violate ToS and risk account bans." },
kiro: { id: "kiro", alias: "kr", name: "Kiro AI", icon: "psychology_alt", color: "#FF6B35" },
};