mem0ai/mem0 · error · ValueError
Currently we only support updating custom_instructions or cu
Error message
Currently we only support updating custom_instructions or custom_categories, so you must provide at least one of them
What it means
Error "Currently we only support updating custom_instructions or custom_categories, so you must provide at least one of them" thrown in mem0ai/mem0.
Source
Thrown at mem0/client/main.py:777
kwargs = {
**(options.model_dump(exclude_unset=True) if options else {}),
**{
k: v
for k, v in {
"custom_instructions": custom_instructions,
"custom_categories": custom_categories,
"memory_depth": memory_depth,
"usecase_setting": usecase_setting,
"multilingual": multilingual,
"agent_custom_instructions": agent_custom_instructions,
}.items()
if v is not None
},
}
if not kwargs:
raise ValueError(
"Currently we only support updating custom_instructions or "
"custom_categories, so you must "
"provide at least one of them"
)
payload = self._prepare_params(kwargs)
response = self.client.patch(
f"/api/v1/orgs/organizations/{self.org_id}/projects/{self.project_id}/",
json=payload,
)
response.raise_for_status()
capture_client_event(
"client.update_project",
self,
{**kwargs, "sync_type": "sync"},
)
return response.json()
View on GitHub (pinned to 001c235229)
Solutions
- Pass custom_instructions and/or custom_categories to the update call.
When it happens
Trigger: Thrown at mem0/client/main.py:777 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of mem0ai/mem0@001c235229 (2026-08-15).
Data as JSON: /api/errors/d73ae89c0dab4385.
Report an issue: GitHub.