mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-25 10:44:24 +00:00
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:
parent
a835baacfc
commit
c6e9240405
13 changed files with 254 additions and 33 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue