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: fix linting error
Krrish Dholakiaf1f9f2a594e3
diff --git a/litellm/llms/ollama/completion/transformation.py b/litellm/llms/ollama/completion/transformation.pyindex 2654d9461ed..5689864017f 100644--- a/litellm/llms/ollama/completion/transformation.py+++ b/litellm/llms/ollama/completion/transformation.py@@ -329,8 +329,8 @@ class OllamaConfig(BaseConfig):model_response.choices[0].finish_reason = "stop"else:response_text = response_json.get("response", "")- content: Optional[str] = None- reasoning_content: Optional[str] = None+ content = None+ reasoning_content = Noneif response_text is not None:reasoning_content, content = _parse_content_for_reasoning(response_text)model_response.choices[0].message.content = content # type: ignore