Add datadog health check support + fix bedrock converse cost tracking w/ region name specified (#7958)

* fix(bedrock/converse_handler.py): fix bedrock region name on async calls

* fix(utils.py): fix split model handling

Fixes bedrock cost calculation when region name is given

* feat(_health_endpoints.py): support health checking datadog integration

Closes https://github.com/BerriAI/litellm/issues/7921
This commit is contained in:
Krish Dholakia 2025-01-23 22:17:09 -08:00 committed by GitHub
parent a835baacfc
commit c6e9240405
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
13 changed files with 254 additions and 33 deletions

View file

@ -4092,7 +4092,7 @@ def _get_potential_model_names(
elif custom_llm_provider and model.startswith(
custom_llm_provider + "/"
): # handle case where custom_llm_provider is provided and model starts with custom_llm_provider
split_model = model.split("/")[1]
split_model = model.split("/", 1)[1]
combined_model_name = model
stripped_model_name = _strip_model_name(
model=split_model, custom_llm_provider=custom_llm_provider