Skip to content

The fastest, litest AI Gateway. Rust core with Python SDK. Call 100+ LLM APIs in OpenAI (or native) format with cost tracking, guardrails, load balancing, and logging [Bedrock, Azure, OpenAI, Anthropic, OpenAI, VertexAI, vLLM, Nvidia NIM]

(contributor PRs) oct 3rd, 2024 (#6034)

Ishaan Jaff1ab886f80dd0
diff --git a/litellm/integrations/SlackAlerting/slack_alerting.py b/litellm/integrations/SlackAlerting/slack_alerting.py
index 34aba36a2e8..f9de9adcd58 100644
--- a/litellm/integrations/SlackAlerting/slack_alerting.py
+++ b/litellm/integrations/SlackAlerting/slack_alerting.py
@@ -1644,7 +1644,7 @@ Model Info:
end_date=last_day_of_month.strftime("%Y-%m-%d"),
)
- if _resp is None:
+ if _resp is None or _resp == ([], []):
return
monthly_spend_per_team, monthly_spend_per_tag = _resp
diff --git a/tests/local_testing/test_embedding.py b/tests/local_testing/test_embedding.py
index 949052ab734..4c7560cccdf 100644
--- a/tests/local_testing/test_embedding.py
+++ b/tests/local_testing/test_embedding.py
@@ -316,7 +316,6 @@ def test_openai_azure_embedding():
os.environ.get("CIRCLE_OIDC_TOKEN") is None,
reason="Cannot run without being in CircleCI Runner",
)
[email protected](reason="Azure east us 2 has a temp outage")
def test_openai_azure_embedding_with_oidc_and_cf():
# TODO: Switch to our own Azure account, currently using ai.moda's account
os.environ["AZURE_TENANT_ID"] = "17c0a27a-1246-4aa1-a3b6-d294e80e783c"