fix: 修复claude code客户端system billing-header部分的判断

This commit is contained in:
shaw
2026-02-24 10:05:16 +08:00
parent 8b684117af
commit ba7024a8dc
2 changed files with 2 additions and 2 deletions

View File

@@ -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])

View File

@@ -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',