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
fix: add 'think' parameter handling in ollama_chat.py
Kowyoe30b716ba894
diff --git a/litellm/llms/ollama_chat.py b/litellm/llms/ollama_chat.pyindex 082312d28f2..e186636de99 100644--- a/litellm/llms/ollama_chat.py+++ b/litellm/llms/ollama_chat.py@@ -59,6 +59,7 @@ def get_ollama_response( # noqa: PLR0915stream = optional_params.pop("stream", False)format = optional_params.pop("format", None)keep_alive = optional_params.pop("keep_alive", None)+ think = optional_params.pop("think", None)function_name = optional_params.pop("function_name", None)tools = optional_params.pop("tools", None)@@ -98,6 +99,8 @@ def get_ollama_response( # noqa: PLR0915data["tools"] = toolsif keep_alive is not None:data["keep_alive"] = keep_alive+ if think is not None:+ data["think"] = think## LOGGINGlogging_obj.pre_call(input=None,