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: propagating json_mode to acompletion (#8133)

miraclebakelaser527e283c51f5
diff --git a/litellm/llms/openai_like/chat/handler.py b/litellm/llms/openai_like/chat/handler.py
index c34bbeabf37..ac886e915c7 100644
--- a/litellm/llms/openai_like/chat/handler.py
+++ b/litellm/llms/openai_like/chat/handler.py
@@ -337,6 +337,7 @@ class OpenAILikeChatHandler(OpenAILikeBase):
timeout=timeout,
base_model=base_model,
client=client,
+ json_mode=json_mode
)
else:
## COMPLETION CALL