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
handle vertex ServiceUnavailableError for codestral
Ishaan Jaff128eeb4997d6
diff --git a/tests/local_testing/test_text_completion.py b/tests/local_testing/test_text_completion.pyindex 315517d0269..5d94820dc11 100644--- a/tests/local_testing/test_text_completion.py+++ b/tests/local_testing/test_text_completion.py@@ -4145,6 +4145,9 @@ async def test_completion_codestral_fim_api(model):# cost = litellm.completion_cost(completion_response=response)# print("cost to make mistral completion=", cost)# assert cost > 0.0+ except litellm.ServiceUnavailableError:+ print("got ServiceUnavailableError")+ passexcept Exception as e:pytest.fail(f"Error occurred: {e}")