mirror of
https://github.com/Wei-Shaw/claude-relay-service.git
synced 2026-03-30 02:31:33 +00:00
fix: 修复claude code客户端system billing-header部分的判断
This commit is contained in:
@@ -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])
|
||||
|
||||
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user