From ba7024a8dc959a9827383872f9959b51304615ac Mon Sep 17 00:00:00 2001 From: shaw Date: Tue, 24 Feb 2026 10:05:16 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8Dclaude=20code=E5=AE=A2?= =?UTF-8?q?=E6=88=B7=E7=AB=AFsystem=20billing-header=E9=83=A8=E5=88=86?= =?UTF-8?q?=E7=9A=84=E5=88=A4=E6=96=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/services/weeklyClaudeCostInitService.js | 2 +- src/utils/contents.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/services/weeklyClaudeCostInitService.js b/src/services/weeklyClaudeCostInitService.js index dafc6cd7..5031bddd 100644 --- a/src/services/weeklyClaudeCostInitService.js +++ b/src/services/weeklyClaudeCostInitService.js @@ -368,7 +368,7 @@ class WeeklyClaudeCostInitService { const models = [] for (const usageKey of keys) { const match = usageKey.match(/^usage:[^:]+:model:daily:(.+):(\d{4}-\d{2}-\d{2})$/) - if (!match || !isOpusModel(match[1])) { + if (!match || !isClaudeFamilyModel(match[1])) { continue } models.push(match[1]) diff --git a/src/utils/contents.js b/src/utils/contents.js index 3c167ff7..1f9bd3dd 100644 --- a/src/utils/contents.js +++ b/src/utils/contents.js @@ -82,7 +82,7 @@ const PROMPT_DEFINITIONS = { claudeOtherSystemPrompt5: { category: 'system', title: 'Claude CLI Billing Header', - text: 'x-anthropic-billing-header: cc_version=2.1.15.c5a; cc_entrypoint=cli' + text: 'x-anthropic-billing-header: __PLACEHOLDER__' }, claudeOtherSystemPromptCompact: { category: 'system',