config.json 10.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133
  1. {
  2. "autoCleanup": "Auto Log Cleanup",
  3. "autoCleanupDesc": "Automatically clean up historical log data on schedule to free up database storage space.",
  4. "description": "Manage system basic parameters that affect site display and statistics behavior.",
  5. "form": {
  6. "allowGlobalView": "Allow Global Usage View",
  7. "allowGlobalViewDesc": "When disabled, regular users can only view their own key usage statistics in the dashboard.",
  8. "autoCleanupSaved": "Auto cleanup configuration saved",
  9. "billingModelSource": "Billing Model Source",
  10. "billingModelSourceDesc": "Configure which model to use for billing when model redirection occurs. 'Before Redirection' uses the original model requested by the user, 'After Redirection' uses the actual model called.",
  11. "billingModelSourceOptions": {
  12. "original": "Before Redirection (Original Model)",
  13. "redirected": "After Redirection (Actual Model)"
  14. },
  15. "billingModelSourcePlaceholder": "Select billing model source",
  16. "codexPriorityBillingSource": "Codex Priority Billing Source",
  17. "codexPriorityBillingSourceDesc": "Controls which service_tier is used for Codex Priority (Fast Mode) surcharge billing. The default is Requested Service Tier; if Actual Service Tier is selected, the response value is used first and falls back to the request value when the response omits it.",
  18. "codexPriorityBillingSourceOptions": {
  19. "requested": "Requested Service Tier (Default)",
  20. "actual": "Actual Service Tier (Fallback to Requested)"
  21. },
  22. "codexPriorityBillingSourcePlaceholder": "Select Codex Priority billing source",
  23. "cleanupBatchSize": "Batch Size",
  24. "cleanupBatchSizeDesc": "Number of records to delete per batch (range: 1000-100000, recommended 10000)",
  25. "cleanupBatchSizePlaceholder": "10000",
  26. "cleanupBatchSizeRequired": "Batch Size *",
  27. "cleanupRetentionDays": "Retention Days",
  28. "cleanupRetentionDaysDesc": "Logs older than this number of days will be automatically cleaned (range: 1-365 days)",
  29. "cleanupRetentionDaysPlaceholder": "30",
  30. "cleanupRetentionDaysRequired": "Retention Days *",
  31. "cleanupSchedule": "Cleanup Schedule",
  32. "cleanupScheduleCronDesc": "Cron expression, default: 0 2 * * * (2 AM daily)",
  33. "cleanupScheduleCronExample": "Example: 0 3 * * 0 (3 AM every Sunday)",
  34. "cleanupScheduleDesc": "Select the execution schedule for automatic cleanup",
  35. "cleanupScheduleLabel": "Execution Time (Cron)",
  36. "cleanupSchedulePlaceholder": "0 2 * * *",
  37. "cleanupScheduleRequired": "Execution Time (Cron) *",
  38. "configUpdated": "System settings updated. The page will refresh to apply currency display changes.",
  39. "currencies": {
  40. "CNY": "¥ Chinese Yuan (CNY)",
  41. "EUR": "€ Euro (EUR)",
  42. "GBP": "£ British Pound (GBP)",
  43. "HKD": "HK$ Hong Kong Dollar (HKD)",
  44. "JPY": "¥ Japanese Yen (JPY)",
  45. "KRW": "₩ South Korean Won (KRW)",
  46. "SGD": "S$ Singapore Dollar (SGD)",
  47. "TWD": "NT$ New Taiwan Dollar (TWD)",
  48. "USD": "$ US Dollar (USD)"
  49. },
  50. "currencyDisplay": "Currency Display Unit",
  51. "currencyDisplayDesc": "After modification, all pages and API interfaces will use the corresponding currency symbol (symbol only, no exchange rate conversion).",
  52. "currencyDisplayPlaceholder": "Select currency unit",
  53. "enableAutoCleanup": "Enable Auto Cleanup",
  54. "enableAutoCleanupDesc": "Automatically clean up historical log data on schedule",
  55. "enableHttp2": "Enable HTTP/2",
  56. "enableHttp2Desc": "When enabled, proxy requests will prefer HTTP/2 protocol. Automatically falls back to HTTP/1.1 on failure.",
  57. "enableHighConcurrencyMode": "Enable High-Concurrency Mode",
  58. "enableHighConcurrencyModeDesc": "When enabled, CCH disables part of the Redis debug snapshots and real-time session observability writes to reduce CPU and IO pressure under high RPM. Forwarding, rectifiers, fake-200 detection, billing, and quota enforcement remain unchanged, but Sessions debugging details may be reduced or delayed.",
  59. "enableResponseFixer": "Enable Response Fixer",
  60. "enableResponseFixerDesc": "Automatically repairs common upstream response issues (encoding, SSE, truncated JSON). Enabled by default.",
  61. "enableThinkingSignatureRectifier": "Enable Thinking Signature Rectifier",
  62. "enableThinkingSignatureRectifierDesc": "When Anthropic providers return thinking signature incompatibility or invalid request errors, automatically removes incompatible thinking blocks and retries once against the same provider (enabled by default).",
  63. "enableThinkingBudgetRectifier": "Enable Thinking Budget Rectifier",
  64. "enableThinkingBudgetRectifierDesc": "When Anthropic providers return budget_tokens < 1024 errors, automatically sets thinking budget to maximum (32000) and max_tokens to 64000 if needed, then retries once (enabled by default).",
  65. "enableBillingHeaderRectifier": "Enable Billing Header Rectifier",
  66. "enableBillingHeaderRectifierDesc": "Proactively removes x-anthropic-billing-header text blocks injected by Claude Code client into the system prompt, preventing Amazon Bedrock and other non-native Anthropic upstreams from returning 400 errors (enabled by default).",
  67. "enableResponseInputRectifier": "Enable Response Input Rectifier",
  68. "enableResponseInputRectifierDesc": "Automatically normalizes non-array input (string shortcut or single message object) in /v1/responses requests to standard array format before processing (enabled by default).",
  69. "enableCodexSessionIdCompletion": "Enable Codex Session ID Completion",
  70. "enableCodexSessionIdCompletionDesc": "When Codex requests provide only one of session_id (header) or prompt_cache_key (body), automatically completes the other. If both are missing, generates a UUID v7 session id and reuses it stably within the same conversation.",
  71. "enableClaudeMetadataUserIdInjection": "Enable Claude metadata.user_id Injection",
  72. "enableClaudeMetadataUserIdInjectionDesc": "When Claude requests are missing metadata.user_id, automatically inject a stable user_id (format: user_{hash}_account__session_{sessionId}). If the client already provides one, keep it unchanged.",
  73. "interceptAnthropicWarmupRequests": "Intercept Warmup Requests (Anthropic)",
  74. "interceptAnthropicWarmupRequestsDesc": "When enabled, Claude Code warmup probe requests will be answered by CCH directly to avoid upstream provider calls; the request is logged for audit but is not billed, not rate-limited, and excluded from statistics.",
  75. "keepDays": "Retention Days",
  76. "keepDaysDesc": "Clean up logs older than this number of days",
  77. "responseFixerFixEncoding": "Fix encoding issues",
  78. "responseFixerFixEncodingDesc": "Removes BOM/null bytes and normalizes invalid UTF-8.",
  79. "responseFixerFixSseFormat": "Fix SSE format",
  80. "responseFixerFixSseFormatDesc": "Adds missing data: prefix, normalizes line endings, and fixes common field formatting.",
  81. "responseFixerFixTruncatedJson": "Fix truncated JSON",
  82. "responseFixerFixTruncatedJsonDesc": "Closes unclosed braces/quotes, removes trailing commas, and fills missing values with null when needed.",
  83. "saveConfig": "Save Configuration",
  84. "saveError": "Save failed",
  85. "saveFailed": "Save failed",
  86. "saveSettings": "Save Settings",
  87. "saveSuccess": "Saved successfully",
  88. "siteTitle": "Site Title",
  89. "siteTitleDesc": "Used to set browser tab title and system default display name.",
  90. "siteTitlePlaceholder": "e.g. Claude Code Hub",
  91. "siteTitleRequired": "Site title cannot be empty",
  92. "verboseProviderError": "Verbose Provider Error",
  93. "verboseProviderErrorDesc": "When enabled, return detailed error messages when all providers are unavailable (including provider count, rate limit reasons, etc.); when disabled, only return a simple error code.",
  94. "timezoneLabel": "System Timezone",
  95. "timezoneDescription": "Set the system timezone for unified backend time boundary calculations and frontend date/time display. Leave empty to use the TZ environment variable or default to UTC.",
  96. "timezoneAuto": "Auto (use TZ env variable)",
  97. "quotaLease": {
  98. "title": "Quota Lease Settings",
  99. "description": "Configure lease refresh interval and slice percentages for rate limit checks. The lease mechanism reduces DB query pressure while maintaining rate limit accuracy.",
  100. "dbRefreshInterval": "DB Refresh Interval (seconds)",
  101. "dbRefreshIntervalDesc": "Interval for refreshing quota usage from the database (1-300 seconds)",
  102. "leasePercent5h": "5-Hour Window Lease Percentage",
  103. "leasePercent5hDesc": "Percentage of 5-hour limit for each lease slice (0-1)",
  104. "leasePercentDaily": "Daily Window Lease Percentage",
  105. "leasePercentDailyDesc": "Percentage of daily limit for each lease slice (0-1)",
  106. "leasePercentWeekly": "Weekly Window Lease Percentage",
  107. "leasePercentWeeklyDesc": "Percentage of weekly limit for each lease slice (0-1)",
  108. "leasePercentMonthly": "Monthly Window Lease Percentage",
  109. "leasePercentMonthlyDesc": "Percentage of monthly limit for each lease slice (0-1)",
  110. "leaseCapUsd": "Lease Cap (USD)",
  111. "leaseCapUsdDesc": "Maximum absolute cap per lease slice in USD, leave empty for no limit",
  112. "warnings": {
  113. "dbRefreshIntervalTooLow": "Refresh interval is {value}s. This may increase DB load.",
  114. "dbRefreshIntervalTooHigh": "Refresh interval is {value}s. Quota/limit updates may be delayed.",
  115. "leasePercentZero": "Percentage is 0. This may cause the lease budget to always be 0.",
  116. "leaseCapZero": "Lease cap is 0. This may cause the per-lease budget to be 0."
  117. }
  118. }
  119. },
  120. "section": {
  121. "autoCleanup": {
  122. "description": "Automatically clean up historical log data on schedule to free up database storage space.",
  123. "title": "Auto Log Cleanup"
  124. },
  125. "siteParams": {
  126. "description": "Configure site title, currency display unit, and dashboard statistics display policy.",
  127. "title": "Site Parameters"
  128. }
  129. },
  130. "siteSettings": "Site Parameters",
  131. "siteSettingsDesc": "Configure site title, currency display unit, and dashboard statistics display policy.",
  132. "title": "Basic Configuration"
  133. }