fix(config): Opus-4.7-Tarif in MODEL_PRICING aktualisieren#273
Merged
Conversation
…ed $15/$75 durch aktuellen $5/$25-Tarif ersetzt (#272)
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.
Befund
MODEL_PRICING["claude-opus-4-7"]ingenerative/config.pytrug noch den Tarif des deprecateten Claude Opus 4.1 ($15/$75 pro Mio. Token, cache_read $1.50, cache_write $18.75) statt des aktuellen Opus-4.7-Tarifs.Fix
MODEL_PRICING["claude-opus-4-7"]ingenerative/config.pyauf{"input": 5.0, "output": 25.0, "cache_read": 0.50, "cache_write": 6.25}korrigiert.Preis-Verifikation
WebFetch von
platform.claude.com/docs/en/about-claude/pricing(2026-07-14): Claude Opus 4.7 kostet $5/M Input-Token, $25/M Output-Token, cache_read $0.50/M, 5m-cache_write $6.25/M (= 1,25x Input, konsistent mit der bestehenden cache_write-Formel im Kommentar überMODEL_PRICING).Tests
RED vor dem Fix:
test_opus_costundtest_opus_cost_with_prefixingenerative/tests/test_cost.pyassertiertencost == 90.0(alter Tarif $15+$75). Mit dem korrigierten Preis schlagen diese Assertions fehl, bis sie auf30.0($5+$25) angepasst werden — entsprechend gefixt. Keine weiteren preisabhängigen Assertions betroffen (test_cost_from_jsonl_tracebleibt unter der< 1.0-Schwelle,test_subscription_returns_zeroist preisunabhängig).Suite & Lint
pytest generative/tests/test_cost.py: 12 passedpytest generative lib/decision_engine/tests shared/tests: 5857 passed, 3 skipped, 8 deselected (335.68s)ruff check(config.py, test_cost.py): All checks passedruff format --check(config.py, test_cost.py): 2 files already formattedCloses #272