Fix GPT-5.6 fast pricing#889
Merged
Merged
Conversation
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.
TL;DR
Price GPT-5.6 Sol, Terra, and Luna fast variants at the owner-confirmed 2.5× rate, matching GPT-5.5 fast mode, and stop unknown fast variants from silently falling back to standard-speed pricing.
What was happening
-fastslug could fuzzy-match its base model and be estimated at 1×, understating spend without warning.What this changes
Heads-up
Tests
DEVELOPER_DIR=/Applications/Xcode.app/Contents/Developer swift test --scratch-path .build-test --filter 'ModelPricing|PricingBundledResource'— 41 tests passedNote
Medium Risk
Changes core model resolution logic and spend totals for any
-fastslug lacking a known multiplier; supplement data is owner-confirmed for GPT-5.6.Overview
Fixes GPT-5.6 Sol, Terra, and Luna fast spend estimates by adding 2.5× fast multipliers (aligned with GPT-5.5) and alias rules so tiered Cursor slugs like
gpt-5.6-sol-ultra-fastresolve and scale all token buckets correctly.ModelPricinglookup no longer prices unrecognized-fastslugs by fuzzy-matching the standard-speed base model (which understated fast usage). Those slugs stay unpriced unless a multiplier, scaled base entry, or exact fast row exists in LiteLLM/models.dev—so incomplete totals surface via the existing warning UI instead of silent 1× rates.Docs and bundled-resource/unit tests cover the new behavior and GPT-5.6 fast end-to-end.
Reviewed by Cursor Bugbot for commit f8e02b5. Bugbot is set up for automated code reviews on this repo. Configure here.