Litellm dev 06 18 2025 p1 (#11872)

* fix(spend_tracking_utils.py): add user agent tags from standard logging payload, in spend logs payload

* feat(litellm_logging.py): identify user agent tags as `User-Agent: ..` and allow admin to disable storing user agent as tag

* fix(azure_ai/): pass content type header in azure ai request

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

* test: add unit test

* fix(router.py): fix passing dynamic credentials to retrieve batch

Fixes batch retrieval when using router

* test: add more unit tests
This commit is contained in:
Krish Dholakia
2025-06-18 21:24:36 -07:00
committed by GitHub
parent c71d50fd09
commit 0d09c8ec96
12 changed files with 137 additions and 22 deletions
@@ -64,12 +64,12 @@ ignored_function_names = [
def main():
logging_file = "./litellm/litellm_core_utils/litellm_logging.py"
tests_dir = "./tests/"
# logging_file = "./litellm/litellm_core_utils/litellm_logging.py"
# tests_dir = "./tests/"
# LOCAL TESTING
# logging_file = "../../litellm/litellm_core_utils/litellm_logging.py"
# tests_dir = "../../tests/"
logging_file = "../../litellm/litellm_core_utils/litellm_logging.py"
tests_dir = "../../tests/"
logging_functions = get_function_names_from_file(logging_file)
print("logging_functions:", logging_functions)