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(main): forward enable_json_schema_validation to acompletion_with_mcp

Chesars1fe2e92d3272
diff --git a/litellm/main.py b/litellm/main.py
index 362e5b8b263..75353c1b070 100644
--- a/litellm/main.py
+++ b/litellm/main.py
@@ -1170,6 +1170,7 @@ def completion( # type: ignore # noqa: PLR0915
thinking=thinking,
web_search_options=web_search_options,
shared_session=shared_session,
+ enable_json_schema_validation=enable_json_schema_validation,
**kwargs,
)
api_base = kwargs.get("api_base", None)