Skip to content

fix(billing): 修复 OpenAI fast 档位计费并补齐展示#875

Merged
Wei-Shaw merged 1 commit intoWei-Shaw:mainfrom
mt21625457:fix/openai-fast-billing-clean
Mar 9, 2026
Merged

fix(billing): 修复 OpenAI fast 档位计费并补齐展示#875
Wei-Shaw merged 1 commit intoWei-Shaw:mainfrom
mt21625457:fix/openai-fast-billing-clean

Conversation

@mt21625457
Copy link
Contributor

变更说明

  • 打通 OpenAI service_tier 在 HTTP、WS、passthrough 与 usage 记录中的传递
  • 修正 priority/flex 计费逻辑,并将 fast 归一化为 priority
  • 在用户端和管理端补齐服务档位、输入/输出单价与计费明细展示
  • 补齐前后端测试,并修复 OpenAI WS 限流信号重复持久化导致的全量回归失败

验证

  • cd backend && go test ./... -count=1
  • cd frontend && npm run test:run
  • cd frontend && npm run typecheck

提交说明

  • 本 PR 基于 upstream/main 单提交整理,不携带其他分支历史

@mt21625457 mt21625457 force-pushed the fix/openai-fast-billing-clean branch 2 times, most recently from 890f7c3 to 4097711 Compare March 9, 2026 01:23
- 打通 service_tier 在 OpenAI HTTP、WS、passthrough 与 usage 记录中的传递
- 修正 priority/flex 计费逻辑,并将 fast 归一化为 priority
- 在用户端和管理端补齐服务档位与计费明细展示
- 补齐前后端测试,并修复 WS 限流信号重复持久化导致的全量回归失败

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@mt21625457 mt21625457 force-pushed the fix/openai-fast-billing-clean branch from 4097711 to 87f4ed5 Compare March 9, 2026 01:51
@Wei-Shaw Wei-Shaw merged commit 391e79f into Wei-Shaw:main Mar 9, 2026
4 checks passed
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.

2 participants