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]

test(test_streaming.py): handle predibase instability

Krrish Dholakiae1cbb397fed8
diff --git a/litellm/tests/test_streaming.py b/litellm/tests/test_streaming.py
index 9aebc0f2477..ed88f818cc0 100644
--- a/litellm/tests/test_streaming.py
+++ b/litellm/tests/test_streaming.py
@@ -571,6 +571,8 @@ async def test_completion_predibase_streaming(sync_mode):
pass
except litellm.InternalServerError as e:
pass
+ except litellm.ServiceUnavailableError as e:
+ pass
except Exception as e:
print("ERROR class", e.__class__)
print("ERROR message", e)