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 tool call for ollama - #19357
Lucky Lodhic4013a34b894
diff --git a/litellm/litellm_core_utils/prompt_templates/common_utils.py b/litellm/litellm_core_utils/prompt_templates/common_utils.pyindex a8b8b207de4..7790fb83361 100644--- a/litellm/litellm_core_utils/prompt_templates/common_utils.py+++ b/litellm/litellm_core_utils/prompt_templates/common_utils.py@@ -1071,9 +1071,9 @@ def _extract_reasoning_content(message: dict) -> Tuple[Optional[str], Optional[s"""message_content = message.get("content")if "reasoning_content" in message:- return message["reasoning_content"], message["content"]+ return message["reasoning_content"], message_contentelif "reasoning" in message:- return message["reasoning"], message["content"]+ return message["reasoning"], message_contentelif isinstance(message_content, str):return _parse_content_for_reasoning(message_content)return None, message_content