mirror of
https://github.com/tiennm99/ccs.git
synced 2026-09-20 05:11:48 +00:00
Merge pull request #679 from 0xble/fix/claude-oauth-policy-limits-unavailable
fix(cliproxy): handle Claude OAuth policy-limits 401 correctly
This commit is contained in:
5 files changed
+284
-18
No files matched your search
@@ -43,6 +43,7 @@ import {
|
||||
import { PRIVACY_BLUR_CLASS } from '@/contexts/privacy-context';
|
||||
import { useAccountQuota, useCliproxyStats } from '@/hooks/use-cliproxy-stats';
|
||||
import { QuotaTooltipContent } from '@/components/shared/quota-tooltip-content';
|
||||
import { useTranslation } from 'react-i18next';
|
||||
import type { AccountItemProps } from './types';
|
||||
|
||||
/**
|
||||
@@ -107,6 +108,7 @@ export function AccountItem({
|
||||
selected,
|
||||
onSelectChange,
|
||||
}: AccountItemProps) {
|
||||
const { t } = useTranslation();
|
||||
const normalizedProvider = account.provider.toLowerCase();
|
||||
const isCodexProvider = normalizedProvider === 'codex';
|
||||
const isClaudeProvider = normalizedProvider === 'claude' || normalizedProvider === 'anthropic';
|
||||
@@ -450,7 +452,7 @@ export function AccountItem({
|
||||
className="text-[10px] h-5 px-2 gap-1 border-muted-foreground/50 text-muted-foreground"
|
||||
>
|
||||
<HelpCircle className="w-3 h-3" />
|
||||
No limits
|
||||
{t('accountCard.quotaUnavailable')}
|
||||
</Badge>
|
||||
</div>
|
||||
) : failureInfo ? (
|
||||
|
||||
Reference in new issue
Block a user