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]
Python ai-gatewayanthropicazure-openaibedrockgatewaylangchainlitellmllmllm-gatewayllmopsmcp-gatewayopenaiopenai-proxyrustrust-aivertex-ai
set timeout on predibase test
Ishaan Jaffa22e4736368f
diff --git a/litellm/tests/test_completion.py b/litellm/tests/test_completion.pyindex 371d7348386..42cd625ee33 100644--- a/litellm/tests/test_completion.py+++ b/litellm/tests/test_completion.py@@ -302,12 +302,14 @@ async def test_completion_predibase():model="predibase/llama-3-8b-instruct",tenant_id="c4768f95",api_key=os.getenv("PREDIBASE_API_KEY"),- messages=[{"role": "user", "content": "What is the meaning of life?"}],+ messages=[{"role": "user", "content": "who are u?"}],max_tokens=10,+ timeout=5,)print(response)except litellm.Timeout as e:+ print("got a timeout error from predibase")passexcept litellm.ServiceUnavailableError as e:pass