Your lightweight open-source personal agent.
Python agent-frameworkai-agentai-agentschatbotchatopsdiscord-botllm-agentsllmslocal-llmmcpmodel-context-protocolmulti-agentopenai-compatibleopenclawpersonal-ai-assistantpythonself-hostedtelegram-bot-ai-assistantwebuiworkflow-automation
fix: adjust DeepSeek reasoning mode check condition
Jiajun Xie8ca575bdeb4d
diff --git a/nanobot/providers/openai_compat_provider.py b/nanobot/providers/openai_compat_provider.pyindex 6712b68bc..251568afc 100644--- a/nanobot/providers/openai_compat_provider.py+++ b/nanobot/providers/openai_compat_provider.py@@ -457,11 +457,16 @@ class OpenAICompatProvider(LLMProvider):if (not self._specor self._spec.name != "deepseek"- or not reasoning_effort- or reasoning_effort.lower() == "none"):return messages+ # For DeepSeek models, always check for incomplete reasoning history+ # when thinking mode might be active. reasoning_effort may not be set+ # explicitly but the model could still be using thinking mode by default.+ # Only skip this check when reasoning_effort is explicitly set to "none".+ if reasoning_effort is not None and reasoning_effort.lower() == "none":+ return messages+bad_idx = Nonefor idx, msg in enumerate(messages):if (