From f1f9f2a594e3a169b2b18a8cd781cb10f896a7b6 Mon Sep 17 00:00:00 2001 From: Krrish Dholakia Date: Mon, 1 Sep 2025 17:52:22 -0700 Subject: [PATCH] fix: fix linting error --- litellm/llms/ollama/completion/transformation.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/litellm/llms/ollama/completion/transformation.py b/litellm/llms/ollama/completion/transformation.py index 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 = None if response_text is not None: reasoning_content, content = _parse_content_for_reasoning(response_text) model_response.choices[0].message.content = content # type: ignore