feat(billing): 支持 Fast 档位与 max 推理强度 - #247
Merged
Merged
Conversation
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## master #247 +/- ##
==========================================
+ Coverage 72.13% 72.24% +0.10%
==========================================
Files 243 243
Lines 14152 14228 +76
Branches 4676 4716 +40
==========================================
+ Hits 10209 10279 +70
Misses 2598 2598
- Partials 1345 1351 +6
🚀 New features to boost your workflow:
|
Owner
Author
|
独立复审后补充提交
本地验证:3579 tests passed / 1 skipped;Lint、Prettier、TypeScript、production build 均通过。 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
补齐 GPT-5.6
max推理强度、OpenAI Fast/Priority 处理档位和缓存写入 Token 的日志与计费支持。Related Issue
无关联 Issue。
Type of Change
Changes
max纳入正式推理强度类型、请求日志和模型徽标。service_tier,展示 Fast、Fast → Standard 和 Fast 未确认状态。cache_write_tokens,接入现有缓存写入计费。Test Plan
pnpm test:run,3576 passed / 1 skipped)pnpm exec tsc --noEmit)pnpm lint)pnpm build)pnpm db:check:consistency)Checklist
Screenshots
未提供。日志状态徽标已通过组件测试覆盖,尚未使用包含真实 Fast 响应的本地数据进行人工截图。
Additional Notes
unknown并按 Standard 计费。price_not_found,不会静默套用 Standard 单价。