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]

fix(constants): remove "null" from OPENAI_FINISH_REASONS to align with OpenAI spec

Chesars3f1167e5b7c4
diff --git a/litellm/constants.py b/litellm/constants.py
index 1b86c6b61aa..a7a8f53cd40 100644
--- a/litellm/constants.py
+++ b/litellm/constants.py
@@ -1202,7 +1202,6 @@ OPENAI_FINISH_REASONS = [
"function_call",
"tool_calls",
"content_filter",
- "null",
]
HUMANLOOP_PROMPT_CACHE_TTL_SECONDS = int(
os.getenv("HUMANLOOP_PROMPT_CACHE_TTL_SECONDS", 60)