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_text_completion_stream - hf

Ishaan Jaff59f3771799d1
diff --git a/tests/local_testing/test_async_fn.py b/tests/local_testing/test_async_fn.py
index 2647a34f67d..9c64c6a9748 100644
--- a/tests/local_testing/test_async_fn.py
+++ b/tests/local_testing/test_async_fn.py
@@ -217,6 +217,7 @@ def test_get_cloudflare_response_streaming():
@pytest.mark.asyncio
[email protected](reason="HF Inference API is unstable, this is now the 3rd time it's stopped working")
async def test_hf_completion_tgi():
# litellm.set_verbose=True
try:
diff --git a/tests/local_testing/test_text_completion.py b/tests/local_testing/test_text_completion.py
index a0cf2c7ec0b..89527354f3c 100644
--- a/tests/local_testing/test_text_completion.py
+++ b/tests/local_testing/test_text_completion.py
@@ -3971,6 +3971,7 @@ def test_completion_hf_prompt_array():
# test_completion_hf_prompt_array()
[email protected](reason="HF Inference API is unstable, this is now the 3rd time it's stopped working")
def test_text_completion_stream():
try:
for _ in range(2): # check if closed client used