fix(mem0): disable thinking for fact extraction calls
Build Nanobot OAuth / build (push) Successful in 5m40s
Build Nanobot OAuth / cleanup (push) Successful in 0s

Fact extraction inherited the instance thinking_budget (10000), causing
the model to spend tokens on thinking instead of outputting JSON. The
response content was empty, failing JSON parse every time.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-03-23 12:36:21 +01:00
co-authored by Claude Opus 4.6
parent 2ab6494ec9
commit 76d5a73cc7
+1
View File
@@ -177,6 +177,7 @@ class Mem0MemoryStore:
model=model,
max_tokens=2000,
temperature=0.3,
thinking_budget=0,
)
text = (response.content or "").strip()
if text.startswith("```"):