config.json 8.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120
  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. "cleanupBatchSize": "Batch Size",
  17. "cleanupBatchSizeDesc": "Number of records to delete per batch (range: 1000-100000, recommended 10000)",
  18. "cleanupBatchSizePlaceholder": "10000",
  19. "cleanupBatchSizeRequired": "Batch Size *",
  20. "cleanupRetentionDays": "Retention Days",
  21. "cleanupRetentionDaysDesc": "Logs older than this number of days will be automatically cleaned (range: 1-365 days)",
  22. "cleanupRetentionDaysPlaceholder": "30",
  23. "cleanupRetentionDaysRequired": "Retention Days *",
  24. "cleanupSchedule": "Cleanup Schedule",
  25. "cleanupScheduleCronDesc": "Cron expression, default: 0 2 * * * (2 AM daily)",
  26. "cleanupScheduleCronExample": "Example: 0 3 * * 0 (3 AM every Sunday)",
  27. "cleanupScheduleDesc": "Select the execution schedule for automatic cleanup",
  28. "cleanupScheduleLabel": "Execution Time (Cron)",
  29. "cleanupSchedulePlaceholder": "0 2 * * *",
  30. "cleanupScheduleRequired": "Execution Time (Cron) *",
  31. "configUpdated": "System settings updated. The page will refresh to apply currency display changes.",
  32. "currencies": {
  33. "CNY": "¥ Chinese Yuan (CNY)",
  34. "EUR": "€ Euro (EUR)",
  35. "GBP": "£ British Pound (GBP)",
  36. "HKD": "HK$ Hong Kong Dollar (HKD)",
  37. "JPY": "¥ Japanese Yen (JPY)",
  38. "KRW": "₩ South Korean Won (KRW)",
  39. "SGD": "S$ Singapore Dollar (SGD)",
  40. "TWD": "NT$ New Taiwan Dollar (TWD)",
  41. "USD": "$ US Dollar (USD)"
  42. },
  43. "currencyDisplay": "Currency Display Unit",
  44. "currencyDisplayDesc": "After modification, all pages and API interfaces will use the corresponding currency symbol (symbol only, no exchange rate conversion).",
  45. "currencyDisplayPlaceholder": "Select currency unit",
  46. "enableAutoCleanup": "Enable Auto Cleanup",
  47. "enableAutoCleanupDesc": "Automatically clean up historical log data on schedule",
  48. "enableHttp2": "Enable HTTP/2",
  49. "enableHttp2Desc": "When enabled, proxy requests will prefer HTTP/2 protocol. Automatically falls back to HTTP/1.1 on failure.",
  50. "enableResponseFixer": "Enable Response Fixer",
  51. "enableResponseFixerDesc": "Automatically repairs common upstream response issues (encoding, SSE, truncated JSON). Enabled by default.",
  52. "enableThinkingSignatureRectifier": "Enable Thinking Signature Rectifier",
  53. "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).",
  54. "enableThinkingBudgetRectifier": "Enable Thinking Budget Rectifier",
  55. "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).",
  56. "enableCodexSessionIdCompletion": "Enable Codex Session ID Completion",
  57. "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.",
  58. "enableClaudeMetadataUserIdInjection": "Enable Claude metadata.user_id Injection",
  59. "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.",
  60. "interceptAnthropicWarmupRequests": "Intercept Warmup Requests (Anthropic)",
  61. "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.",
  62. "keepDays": "Retention Days",
  63. "keepDaysDesc": "Clean up logs older than this number of days",
  64. "responseFixerFixEncoding": "Fix encoding issues",
  65. "responseFixerFixEncodingDesc": "Removes BOM/null bytes and normalizes invalid UTF-8.",
  66. "responseFixerFixSseFormat": "Fix SSE format",
  67. "responseFixerFixSseFormatDesc": "Adds missing data: prefix, normalizes line endings, and fixes common field formatting.",
  68. "responseFixerFixTruncatedJson": "Fix truncated JSON",
  69. "responseFixerFixTruncatedJsonDesc": "Closes unclosed braces/quotes, removes trailing commas, and fills missing values with null when needed.",
  70. "saveConfig": "Save Configuration",
  71. "saveError": "Save failed",
  72. "saveFailed": "Save failed",
  73. "saveSettings": "Save Settings",
  74. "saveSuccess": "Saved successfully",
  75. "siteTitle": "Site Title",
  76. "siteTitleDesc": "Used to set browser tab title and system default display name.",
  77. "siteTitlePlaceholder": "e.g. Claude Code Hub",
  78. "siteTitleRequired": "Site title cannot be empty",
  79. "verboseProviderError": "Verbose Provider Error",
  80. "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.",
  81. "timezoneLabel": "System Timezone",
  82. "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.",
  83. "timezoneAuto": "Auto (use TZ env variable)",
  84. "quotaLease": {
  85. "title": "Quota Lease Settings",
  86. "description": "Configure lease refresh interval and slice percentages for rate limit checks. The lease mechanism reduces DB query pressure while maintaining rate limit accuracy.",
  87. "dbRefreshInterval": "DB Refresh Interval (seconds)",
  88. "dbRefreshIntervalDesc": "Interval for refreshing quota usage from the database (1-300 seconds)",
  89. "leasePercent5h": "5-Hour Window Lease Percentage",
  90. "leasePercent5hDesc": "Percentage of 5-hour limit for each lease slice (0-1)",
  91. "leasePercentDaily": "Daily Window Lease Percentage",
  92. "leasePercentDailyDesc": "Percentage of daily limit for each lease slice (0-1)",
  93. "leasePercentWeekly": "Weekly Window Lease Percentage",
  94. "leasePercentWeeklyDesc": "Percentage of weekly limit for each lease slice (0-1)",
  95. "leasePercentMonthly": "Monthly Window Lease Percentage",
  96. "leasePercentMonthlyDesc": "Percentage of monthly limit for each lease slice (0-1)",
  97. "leaseCapUsd": "Lease Cap (USD)",
  98. "leaseCapUsdDesc": "Maximum absolute cap per lease slice in USD, leave empty for no limit",
  99. "warnings": {
  100. "dbRefreshIntervalTooLow": "Refresh interval is {value}s. This may increase DB load.",
  101. "dbRefreshIntervalTooHigh": "Refresh interval is {value}s. Quota/limit updates may be delayed.",
  102. "leasePercentZero": "Percentage is 0. This may cause the lease budget to always be 0.",
  103. "leaseCapZero": "Lease cap is 0. This may cause the per-lease budget to be 0."
  104. }
  105. }
  106. },
  107. "section": {
  108. "autoCleanup": {
  109. "description": "Automatically clean up historical log data on schedule to free up database storage space.",
  110. "title": "Auto Log Cleanup"
  111. },
  112. "siteParams": {
  113. "description": "Configure site title, currency display unit, and dashboard statistics display policy.",
  114. "title": "Site Parameters"
  115. }
  116. },
  117. "siteSettings": "Site Parameters",
  118. "siteSettingsDesc": "Configure site title, currency display unit, and dashboard statistics display policy.",
  119. "title": "Basic Configuration"
  120. }