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
Support for Ollama Structured output json_schema (#11880)
Thakee Nathees34bfaf5e71ea
diff --git a/litellm/llms/ollama/completion/transformation.py b/litellm/llms/ollama/completion/transformation.pyindex 9ccb8810736..aa1da616d89 100644--- a/litellm/llms/ollama/completion/transformation.py+++ b/litellm/llms/ollama/completion/transformation.py@@ -179,6 +179,8 @@ class OllamaConfig(BaseConfig):if param == "response_format" and isinstance(value, dict):if value["type"] == "json_object":optional_params["format"] = "json"+ elif value["type"] == "json_schema":+ optional_params["format"] = value["json_schema"]["schema"]return optional_params