Repository navigation
Correct curated AI-credit model prices - #9982
Conversation
Co-authored-by: lpcox <15877973+lpcox@users.noreply.github.com>
Co-authored-by: lpcox <15877973+lpcox@users.noreply.github.com>
There was a problem hiding this comment.
🟡 Changes recommended
The reference check does not implement the required missing cached-input rate behavior.
1 open finding
What changed in this PR
Corrects curated AI-credit pricing to prevent inflated usage accounting and budget enforcement.
Changes:
- Updates seven model pricing entries.
- Adds an offline, versioned pricing reference check.
- Adds regression coverage for usage accounting and operator-price precedence.
| File | Description |
|---|---|
containers/api-proxy/ai-credits-pricing.js |
Corrects curated rates. |
containers/api-proxy/ai-credits-pricing-reference.json |
Adds authoritative pricing references. |
containers/api-proxy/ai-credits-pricing-reference.test.js |
Checks curated pricing against references. |
containers/api-proxy/token-budget-log.test.js |
Covers real usage records and precedence. |
containers/api-proxy/guards/ai-credits-guard.test.js |
Updates expected credit calculations. |
🧠 Review effort: Balanced
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
|
✅ Copilot review passed with no inline comments. @copilot Add the |
✅ Coverage Check PassedOverall Coverage
📁 Per-file Coverage Changes (2 files)
Coverage comparison generated by |
|
📡 Smoke OTel Tracing completed. All tracing scenarios validated. ✅
|
|
🪪 Smoke Copilot BYOK AOAI (Entra) is testing Azure OpenAI BYOK (Entra / GitHub OIDC) mode on this pull request... |
|
📰 VERDICT: Smoke Copilot has concluded. All systems operational. This is a developing story. 🎤
|
|
✅ Smoke Copilot BYOK completed. Copilot BYOK mode operational. 🔓
|
|
✨ The prophecy is fulfilled... Smoke Codex has completed its mystical journey. The stars align. 🌟 Smoke CodexOutcome: The agent completed and reported no action. A no-op output alone does not verify that all required work was completed or that publication was possible. Agent messages are omitted from this comment. The category uses structured run status, not interpretation of agent prose.
|
|
🛡️ Smoke Copilot Network Isolation confirmed the egress allowlist is enforced. ✅
|
|
✅ Smoke Claude passed
|
|
🔌 Smoke Services — All services reachable! ✅
|
|
✅ Build Test Suite completed successfully!
|
|
Smoke Cloud Hypervisor completed. Cloud Hypervisor + Copilot passed.
|
|
🔑 Smoke Copilot BYOK AOAI (api-key) is testing Azure OpenAI BYOK (api-key) mode on this pull request... |
|
✅ Security Guard completed successfully! Security GuardOutcome: The agent completed and reported no action. A no-op output alone does not verify that all required work was completed or that publication was possible. Agent messages are omitted from this comment. The category uses structured run status, not interpretation of agent prose.
|
|
Chroot tests passed! Smoke Chroot - All security and functionality tests succeeded.
|
|
💎 Smoke Gemini is crystallizing results on this pull request... |
Smoke Test: Claude Engine Validation
Overall result: PASS
|
Cloud Hypervisor + Copilot Smoke Test
All checks passed.
|
|
EGRESS_RESULT allow=pass deny=pass
|
|
Smoke Copilot: PASS
|
|
Smoke services: ✅ Redis PONG, ✅ pg_isready, ✅ SELECT 1. Overall: PASS
|
|
OTEL smoke test
|
✅ Smoke Test: Copilot BYOK (Direct) ModeAll tests passed. Running in direct BYOK mode (COPILOT_PROVIDER_API_KEY) via api-proxy → api.githubcopilot.com
Status: PASS cc @lpcox
|
🏗️ Build Test Suite Results
Overall: 6/8 ecosystems passed — FAIL Failures:
The
|
|
Chroot Version Comparison
Result: Not all tests passed. Node.js differs between the host (v24) and the chroot (v22), so the
|

Curated prices overstated AI-credit usage for Sonnet 5, GPT-6 Luna/Sol, and GPT-5.6 models, affecting default-model workflows and budget enforcement. Update the published rates and add an offline reference check to catch future drift.