litellm/tests/litellm_utils_tests
Krish Dholakia 06906534b3
feat(audio_transcriptions/): calculate duration of audio file for cost calculation + feat (image_generations): cost tracking accuracy improved with output_format, quality, size values fixed per openai model
* feat(audio_transcriptions/): calculate duration of audio file for cost calculation

Fixes https://github.com/BerriAI/litellm/issues/11846

Closes https://github.com/BerriAI/litellm/issues/14605

* fix(cost_calculator.py): correctly use base model, when set

Fixes issue where azure base model was being ignored

* feat(cost_calculator.py): fix default cost tracking quality param for image generation

* feat(image_generations/): return output_format, quality, size

aligns response to openai spec and improves cost tracking accuracy

* fix(cost_calculator.py): refactor cost calculation for image generation to use image response instead of hidden params

* build: update build

* fix: fix cost calculation

* build: update poetry lock

* fix: fix ruff checks

* fix: fix aembedding

* fix: fix ruff errors

* fix: modify to catch errors

* fix: test

* fix: loosen test to handle openai lib out of sync

* fix: fix base models

* fix: fix usage object
2025-11-08 16:24:31 -08:00
..
conftest.py
log.txt
test_aiohttp_handler.py
test_aws_secret_manager.py Add tags and descriptions support to aws secrets manager (#16224) 2025-11-04 16:11:51 -08:00
test_cyberark.py fix cyber ark 2025-11-06 16:26:14 -08:00
test_get_secret.py
test_hashicorp.py [Feat] Secret Manager - Hashicorp, add auth via approle (#16374) 2025-11-07 14:39:33 -08:00
test_health_check.py feat(audio_transcriptions/): calculate duration of audio file for cost calculation + feat (image_generations): cost tracking accuracy improved with output_format, quality, size values fixed per openai model 2025-11-08 16:24:31 -08:00
test_litellm_overhead.py [Feat] LiteLLM Overhead metric tracking - Add support for tracking litellm overhead on cache hits (#15045) 2025-09-29 17:33:27 -07:00
test_logging_callback_manager.py
test_proxy_budget_reset.py
test_secret_manager.py Add tags and descriptions support to aws secrets manager (#16224) 2025-11-04 16:11:51 -08:00
test_utils.py claude-sonnet-4-5-20250929 fix 2025-10-31 18:20:52 -07:00
test_validate_tool_choice.py
vertex_key.json