litellm/ci_cd
Shreshth Kharbanda 9e9cc12a25 fix(azure_ai): keep deployment prices, uploads and chat token counting as they were
A FLUX.2 deployment's own prices now decide the whole bill the way the owner set them. A flat output_cost_per_image stays flat per image and covers references, a deployment input_cost_per_pixel prices every megapixel and its references, and input_cost_per_reference_pixel overrides either. Only a deployment with neither gets the catalog's first-megapixel-plus-extra pricing

The generated image is billed from the image Azure returns, so an edit without size is billed at the reference's size, which is what Azure generates. A size that can't be parsed bills one megapixel instead of raising

FLUX.2 edits accept any object with read() again, as main did, including NamedTemporaryFile, SpooledTemporaryFile on 3.10 and Flask uploads, and a text-mode file fails with a clear error. get_image_dimensions raises on a malformed header as it did on main, and the JPEG header scan gives up after 1024 segments, 1024 fill bytes or a segment shorter than its length field

get_model_info and model group info now report input_cost_per_reference_pixel, flux.2-pro lists the edits endpoint, and the key's description says how pixels are counted. The image_edit change that passed deployment prices into logging for every provider is reverted, since it changed other providers' billing on the proxy while generations kept the old behavior
2026-09-25 15:23:54 -07:00
..
baseline_db.py Connect UI to "LiteLLM_DailyUserSpend" spend table - enables usage tab to work at 1m+ spend logs (#9603) 2025-03-27 23:29:15 -07:00
check_file_length.py (clean up) move docker files from root to docker folder (#6109) 2024-10-08 08:23:52 +05:30
check_files_match.py (fix) pre commit hook to sync backup context_window mapping 2024-02-05 15:03:04 -08:00
cost_map_guard.py ci: skip cost map file checks on PRs that leave the cost map untouched (#42406) 2026-09-21 21:40:48 -07:00
generate_model_prices_schema.py fix(azure_ai): keep deployment prices, uploads and chat token counting as they were 2026-09-25 15:23:54 -07:00
run_migration.py ci: follow the default branch in development tooling 2026-09-07 14:34:45 -07:00
security_scans_readme.md [Security] Ensure LiteLLM Images have 0 Critical, High, Medium vulnerabilities with CVSS ≥ 4.0 (#14357) 2025-09-08 16:49:52 -07:00
TEST_KEY_PATTERNS.md Fix CI: Revert security scan changes and add GitGuardian ignore rules (#18358) 2025-12-22 17:03:53 -08:00