Skip to content

fix: update priority pricing for gpt 5.5#3959

Open
abwuge wants to merge 2 commits into
Wei-Shaw:mainfrom
abwuge:fix/priority-pricing
Open

fix: update priority pricing for gpt 5.5#3959
abwuge wants to merge 2 commits into
Wei-Shaw:mainfrom
abwuge:fix/priority-pricing

Conversation

@abwuge

@abwuge abwuge commented Jul 10, 2026

Copy link
Copy Markdown

修正gpt 5.5 priority定价。定价来源:OpenAI 官方 Priority 定价表

Copilot AI review requested due to automatic review settings July 10, 2026 07:55
@github-actions

github-actions Bot commented Jul 10, 2026

Copy link
Copy Markdown
Contributor

All contributors have signed the CLA. ✅
Posted by the CLA Assistant Lite bot.

@abwuge

abwuge commented Jul 10, 2026

Copy link
Copy Markdown
Author

Thank you for your contribution! Before we can merge this PR, we need you to sign our Contributor License Agreement (CLA).

To sign, please reply with the following comment:

I have read the CLA Document and I hereby sign the CLA

You only need to sign once — it will be valid for all your future contributions to this project.

I have read the CLA Document and I hereby sign the CLA

You can retrigger this bot by commenting recheck in this Pull Request. Posted by the CLA Assistant Lite bot.

I have read the CLA Document and I hereby sign the CLA

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates billing to reflect the official OpenAI GPT‑5.5 Priority pricing, addressing stale priority rates from the pricing mirror and ensuring correct costs are applied in both dynamic and fallback pricing paths.

Changes:

  • Updated GPT‑5.5 Priority per-token prices in the mirrored pricing JSON (including the dated model variant).
  • Added a billing-layer override to enforce official GPT‑5.5 Priority pricing before channel overrides are applied.
  • Added a unit test to validate GPT‑5.5 Priority pricing behavior against stale mirror data.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.

File Description
backend/resources/model-pricing/model_prices_and_context_window.json Updates GPT‑5.5 Priority token pricing values to match official rates.
backend/internal/service/billing_service.go Applies an explicit GPT‑5.5 Priority pricing override when mirrored data is stale.
backend/internal/service/billing_service_test.go Adds coverage asserting GPT‑5.5 uses the official Priority prices even if mirror data is incorrect.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread backend/internal/service/billing_service.go Outdated
Comment thread backend/internal/service/billing_service_test.go Outdated
@abwuge

abwuge commented Jul 10, 2026

Copy link
Copy Markdown
Author

recheck

@abwuge

abwuge commented Jul 10, 2026

Copy link
Copy Markdown
Author

I have read the CLA Document and I hereby sign the CLA

github-actions Bot added a commit that referenced this pull request Jul 10, 2026
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
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