@1mancompany/onemancompany 0.7.68 → 0.7.69

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@1mancompany/onemancompany",
3
- "version": "0.7.68",
3
+ "version": "0.7.69",
4
4
  "description": "The AI Operating System for One-Person Companies",
5
5
  "bin": {
6
6
  "onemancompany": "bin/cli.js"
package/pyproject.toml CHANGED
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "onemancompany"
3
- version = "0.7.68"
3
+ version = "0.7.69"
4
4
  description = "A one-man company simulation with pixel art visualization and LangChain AI agents"
5
5
  requires-python = ">=3.12"
6
6
  dependencies = [
@@ -221,6 +221,11 @@ def make_llm(employee_id: str = "", temperature: float | None = None) -> BaseCha
221
221
  base_url = settings.openrouter_base_url
222
222
  elif api_provider == "custom" or (settings.default_api_base_url and api_provider == settings.default_api_provider):
223
223
  base_url = settings.default_api_base_url
224
+ extra_body = None
225
+ if (api_provider or "").lower() == "deepseek":
226
+ # DeepSeek V4 thinking mode currently requires reasoning_content
227
+ # replay across tool calls, which LangChain does not preserve.
228
+ extra_body = {"thinking": {"type": "disabled"}}
224
229
  return ChatOpenAI(
225
230
  model=model,
226
231
  api_key=effective_key,
@@ -229,6 +234,7 @@ def make_llm(employee_id: str = "", temperature: float | None = None) -> BaseCha
229
234
  max_retries=3,
230
235
  request_timeout=300.0,
231
236
  stream_usage=True,
237
+ extra_body=extra_body,
232
238
  )
233
239
 
234
240
  # --- Fallback: unknown provider or no key → fall back to openrouter with default model ---
@@ -96,7 +96,18 @@ def _load_llm(profile: dict):
96
96
  base_url = prov[0]
97
97
  if provider_name == "openrouter":
98
98
  base_url = os.environ.get("OPENROUTER_BASE_URL", base_url)
99
- return ChatOpenAI(model=model, api_key=key, base_url=base_url, temperature=temperature)
99
+ extra_body = None
100
+ if (provider_name or "").lower() == "deepseek":
101
+ # DeepSeek V4 thinking mode requires reasoning_content replay
102
+ # across tool calls; LangChain does not preserve it yet.
103
+ extra_body = {{"thinking": {{"type": "disabled"}}}}
104
+ return ChatOpenAI(
105
+ model=model,
106
+ api_key=key,
107
+ base_url=base_url,
108
+ temperature=temperature,
109
+ extra_body=extra_body,
110
+ )
100
111
 
101
112
  # Unknown provider — fall back to OpenRouter
102
113
  key = api_key or os.environ.get("OPENROUTER_API_KEY", "")