Skip to content

Releases

v0.5.1

Choose a tag to compare

@github-actions github-actions released this 03 Sep 02:23

Automated release for v0.5.1. See README for capabilities and configuration.

v0.4.4

Choose a tag to compare

@github-actions github-actions released this 21 Jul 10:39
d3bc0f1

Automated release for v0.4.4. See README for capabilities and configuration.

v0.4.3

Choose a tag to compare

@github-actions github-actions released this 09 Jul 06:33

Automated release for v0.4.3. See README for capabilities and configuration.

v0.4.2

Choose a tag to compare

@github-actions github-actions released this 09 Jul 06:20

Automated release for v0.4.2. See README for capabilities and configuration.

v0.4.1

Choose a tag to compare

@github-actions github-actions released this 06 Jul 15:18

Automated release for v0.4.1. See README for capabilities and configuration.

v0.4.0

Choose a tag to compare

@github-actions github-actions released this 04 Jul 09:45

Automated release for v0.4.0. See README for capabilities and configuration.

v0.3.3

Choose a tag to compare

@github-actions github-actions released this 03 Jul 08:14

Automated release for v0.3.3. See README for capabilities and configuration.

v0.3.2

Choose a tag to compare

@github-actions github-actions released this 03 Jul 08:03

Automated release for v0.3.2. See README for capabilities and configuration.

v0.3.1

Choose a tag to compare

@github-actions github-actions released this 03 Jul 07:15

Automated release for v0.3.1. See README for capabilities and configuration.

v0.3.0

Choose a tag to compare

@origin652 origin652 released this 02 Jul 09:21

What's new

  • Per-call billing mode for model aliases: new BillingMode (tokens | per_call) + PerCallUSD field. Each successful request charges a fixed USD amount, independent of token counts. Token prices are retained but dormant under per_call; switch back to tokens to reuse them. PerCallUSD=0 is allowed (free calls, call count still increments).
  • Per-key usage detail subpage: new management route GET /keys/usage?id=... returns a per-alias (per-model) usage breakdown for a single downstream key. Frontend page at /keys/:id/usage with a daily/weekly window toggle and columns for alias, billing mode, provider, USD, call count, input/output/cache tokens, and hit rate. Configured-but-unused aliases show zero rows; aliases removed from config but with history show with an in_config=false badge.
  • Image/video pre-charge (CPA usage workaround): CPA's XAI executor does not emit usage records for /v1/images/* and /v1/videos/*, so per-call aliases on these endpoints were never billed via usage.handle. The plugin now pre-charges per_call aliases on these paths at access time. This is unconditional — failed upstream requests are also charged (the access hook cannot observe the upstream outcome). A UI warning surfaces this trade-off when per_call is enabled. Tracked upstream as router-for-me/CLIProxyAPI#4085.
  • Dual-window per-alias tracking: ByAlias upgraded from single-window to Daily + Weekly. Legacy state files auto-migrate on load (old single-window entry → daily, weekly zeroed).
  • Frontend: KeyForm billing-mode toggle, KeyList call-count display, new KeyUsage page. 4 locales updated (zh-CN, zh-TW, en, ru).

Upgrading

Replace the plugin binary and restart CPA. State files from v0.2.x are auto-migrated; no manual action needed.