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

@ -386,6 +386,7 @@ def _select_model_name_for_cost_calc(
3. If completion response has model set return that
4. Check if model is passed in return that
"""
return_model: Optional[str] = None
region_name: Optional[str] = None
custom_llm_provider = _get_provider_for_cost_calc(