Port v0.57.0: normalize reserve telemetry pricing alias - #490
Open
Finesssee wants to merge 1 commit into
Open
Conversation
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Advanced Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
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.
What this ports
Ports upstream commit
57ddfdbf70f2de23c1b5bd8fdb3c660944a22b4afromsteipete/CodexBarfor the reserve telemetry pricing alias.The local Rust equivalent normalizes the exact
gpt-reservealias togpt-5.6-luna, including trimmed, provider-qualified, and case-insensitive input forms. The shared normalizer is used by both fresh usage and cached pricing paths.Scope
Changed files:
rust/src/core/cost_pricing.rsrust/src/core/cost_pricing_tests.rsThe port intentionally excludes upstream Swift generated pricing, parser/cache, UI, documentation, and changelog surfaces that do not map to this local Rust implementation.
This PR is stacked after the numeric parsing lane in PR #489:
port/micro-0.57.0-opencodex-numericport/micro-0.57.0-reserve-pricingValidation
cargo fmt --all -- --check— passedgit diff --check— passedcore::cost_pricing::tests::gpt_reserve_alias_uses_luna_pricinglink.exeto Gitusr/bin/link.exe, which rejected MSVC linker arguments withlink: extra operand.Oracle reviewed the implementation and approved staging, commit, push, and this stacked PR. The PR remains open for review; no merge is requested by this porting step.