Skip to content

[codex] add unified quota model pools#208

Merged
qxcnm merged 9 commits into
qxcnm:mainfrom
KilimiaoSix:feature/quota-management-center
May 12, 2026
Merged

[codex] add unified quota model pools#208
qxcnm merged 9 commits into
qxcnm:mainfrom
KilimiaoSix:feature/quota-management-center

Conversation

@KilimiaoSix
Copy link
Copy Markdown
Contributor

Closes #207

Summary

  • Add a unified quota pool storage and RPC layer for model-level quota aggregation.
  • Add model whitelist assignment support for aggregate APIs and OpenAI accounts.
  • Estimate aggregate API balances into per-model token pools using model pricing rules.
  • Estimate OpenAI account model pools from configurable plan capacity templates and account overrides.
  • Surface model quota pools in the dashboard, aggregate API page, account management, and model management.
  • Keep platform API key quotas as consumer-side limits so upstream supply is not double counted.

Context

This implements the model-level quota pool direction discussed in #207 and is related to the existing quota/balance requests in #47, #119, #163, and #201.

The dashboard now shows a model quota overview instead of a misleading system-wide total. The ordering follows the model catalog sort order used by model management.

Validation

  • cargo test -p codexmanager-service quota
  • node --test apps/tests/transport-web-commands.test.mjs
  • pnpm run build:desktop
  • Manual browser check for dashboard and model management quota pool display

@qxcnm
Copy link
Copy Markdown
Owner

qxcnm commented May 12, 2026

大佬在我微信群里吗?

@KilimiaoSix
Copy link
Copy Markdown
Contributor Author

大佬在我微信群里吗?

没有诶

@qxcnm
Copy link
Copy Markdown
Owner

qxcnm commented May 12, 2026

大佬在我微信群里吗?

没有诶

佬给我个微信我加你方便吗

@KilimiaoSix
Copy link
Copy Markdown
Contributor Author

大佬在我微信群里吗?

没有诶

佬给我个微信我加你方便吗

可以,微信号:jwxie9

@KilimiaoSix KilimiaoSix marked this pull request as ready for review May 12, 2026 02:36
@qxcnm qxcnm merged commit 7034a29 into qxcnm:main May 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature] 统一额度池与模型池汇总

2 participants