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
attempt fix translation tests
yuneng-jiang93016771bbfb
diff --git a/litellm/constants.py b/litellm/constants.pyindex d346bc46f51..9e8ec0a143a 100644--- a/litellm/constants.py+++ b/litellm/constants.py@@ -1067,7 +1067,7 @@ known_tokenizer_config = {}-OPENAI_FINISH_REASONS = ["stop", "length", "function_call", "content_filter", "null", "finish_reason_unspecified", "malformed_function_call"]+OPENAI_FINISH_REASONS = ["stop", "length", "function_call", "content_filter", "null", "finish_reason_unspecified", "malformed_function_call", "guardrail_intervened"]HUMANLOOP_PROMPT_CACHE_TTL_SECONDS = int(os.getenv("HUMANLOOP_PROMPT_CACHE_TTL_SECONDS", 60)) # 1 minutediff --git a/litellm/types/llms/openai.py b/litellm/types/llms/openai.pyindex 879f8ba800d..db5d0f43b82 100644--- a/litellm/types/llms/openai.py+++ b/litellm/types/llms/openai.py@@ -2012,7 +2012,7 @@ class OpenAIBatchResult(TypedDict, total=False):OpenAIChatCompletionFinishReason = Literal[- "stop", "content_filter", "function_call", "tool_calls", "length", "finish_reason_unspecified", "malformed_function_call" # last 2 are vertex ai specific+ "stop", "content_filter", "function_call", "tool_calls", "length", "guardrail_intervened", "finish_reason_unspecified", "malformed_function_call" # last 2 are vertex ai specific, guardrail_intervened is bedrock specific]