Skip to content
CCHPCCHPRelease Notes
v1.0.12Stable

CCHP v1.0.12

Introduces governed Feature Flags, multi-scope Request & Response Overrides, a dedicated Security console with IP auto-banning, and major gateway memory and scaling optimizations.

11 features12 improvements5 fixes1 security update2 upgrade notes
In this release
  • Multi-scope Request & Response Overrides with condition trees, templates, and automatic migration of legacy rewrite rules.
  • Audited Feature Flags with 5-second rollout and rollback, plus a Security page featuring IP auto-banning (20028) and threat intelligence.
  • Per-organization routing graphs cut 100k-key memory from 4,531 MiB to 305 MiB, and endpoint edits drop from 18.2 s to 0.007 s.
  • Replaced Advanced System Settings with a Feature Flags page. Every toggle is published with a reason, full audit trail, and rollback support, taking effect across all processes within 5 seconds and showing or hiding console entries accordingly. Initial flags (Privacy Filtering, Error Rules, Database Import/Export, Model Safety) default to off on new installs while active features remain enabled on upgrade.
  • Added unified Request & Response Overrides configurable across Global, Organization, Team, User, Provider, Key, Endpoint, Provider Group, Model, and LLM Key scopes with condition trees, wildcards, regular expressions, template variables, and presets. Added an Overrides tab to Request Details; legacy request filters, model redirects, Claude Code client emulation, and outbound header rewrites migrate automatically.
  • Added a Models tag to Provider Groups supporting exact names and wildcards (such as gpt-*) to restrict dispatchable models, enforced consistently across the gateway, /v1/models, and Model Plaza (Provider groups).
  • Added configurable counting windows with cycle start anchors to quota rules, displaying usage, remaining allowance, and reset timestamps per scope. Request logs now distinguish gateway quota rejections from upstream rate limits (Limits on every level and postpaid organizations).
  • Added a Billing tab in User Management allowing administrators to inspect member balances, plans, and quotas, revoke plans, redeem codes on a member's behalf, and adjust balances or quotas with preview-before-confirm and full audit logging.
  • Added cloud pricing copy in Model Management to import pricing, capabilities, and metadata directly from the cloud catalog (Model management and pricing).
  • Enabled Always Stream Upstream by default: non-streaming requests call upstream via streaming and reassemble the non-streaming response in the gateway without changing usage or billing. Can be disabled in Routing Features.
  • Enhanced OpenAI Responses with native continuation outputting previous_response_id and conversation, and added outbound upstream WebSocket support for WebSocket conversations.
  • Added a usage-log dead-letter queue: permanently failed events are quarantined with alerts while the same shard continues writing normally, and administrators can replay or discard dead-letter entries.
  • Added automatic repricing for pending-price image outputs once quotes are added to the cloud pricing catalog.
  • Added DeepSeek and Kimi support for custom provider balance tracking, and increased provider key cost multiplier precision to three decimal places (Upstream ratios and balances).
  • Added a Security page under System Settings with client IP detection, opt-in IP auto-banning (counts authentication failures per client IP, blocks with error code 20028, and integrates with GreyNoise, AbuseIPDB, and Cloudflare threat intelligence), ban-list management and unbanning, WebSocket subprotocol configuration, and security audit queue failure handling.
  • Scoped routing graph loading per organization, reducing working-set memory at 100,000 keys from 4,531 MiB to 305 MiB.
  • Decoupled endpoint creation and editing latency from provider key count (18.2 s → 0.007 s at 10,000 keys).
  • Accounted request-body memory budgets by actual usage so small requests no longer queue behind large ones, with bounded queuing that returns 503 and Retry-After (error code 30601) under backlog.
  • Reduced per-request gateway CPU overhead.
  • Defaulted unsaved routing policies to Price First; removed key priority tiering under Price, Speed, and Success Rate strategies so priority and weight apply strictly under Manual routing (Group routing strategies).
  • Excluded quota-exhausted candidates from the active routing plan and advanced to the next candidate in order, returning 429 only after all candidates exceed quota.
  • Switched archive exports to streaming multipart uploads so large records are no longer buffered wholly in memory, and counted aborted exports toward retry attempts.
  • Redesigned the Personal Center with row-aligned components, a compact API key table, and unified personal and system notifications in a single card.
  • Overhauled all email templates with five-language support, dark mode, and plain-text fallbacks, organized alert emails across 7 scenarios, and copied member billing emails to the organization billing address.
  • Switched Provider and Key lists to server-side pagination, avoiding loading all keys at once in large deployments.
  • Streamlined the Setup Wizard to complete upon creating the first organization while importing the cloud pricing catalog asynchronously in the background (Install with Docker Compose).
  • Closed the New Provider Key dialog immediately upon saving, surfaced group multiplier results as a clear tooltip, and detailed blocking reasons and invalid fields in settings save bars.
  • Decoded compressed upstream SSE streams (such as Caddy with encode enabled) according to Content-Encoding, preventing false stream disconnects, unnecessary failover, and duplicate upstream billing.
  • Reduced PostgreSQL query planning memory for ledger row-level security (RLS) idempotency-key lookups from hundreds of MB to roughly 3.5 MB, retaining legacy policy versions only on access-narrowing changes to prevent database OOM terminations.
  • Fixed the platform organization list returning 500 when sub-organizations exist.
  • Fixed wallet links with #recharge opening the top-up dialog before payment methods finished loading.
  • Fixed the update notification reappearing repeatedly after clicking Update.

Upgrade Notes

  • Back up the database before upgrading; schema migrations cannot be rolled back (Install with Docker Compose).
  • Legacy request filters, model redirects, Claude Code client emulation, and outbound header rewrites migrate automatically to Request & Response Overrides; active features covered by new Feature Flags remain enabled after upgrading (Request and response overrides).