diff --git a/docs/openapi.json b/docs/openapi.json index 38d3db9d4..5b40f65f7 100644 --- a/docs/openapi.json +++ b/docs/openapi.json @@ -4889,7 +4889,7 @@ "title": "Output format", "type": "string", "nullable": true, - "default": "v1.0" + "default": "v1.1" }, "custom_categories": { "description": "A list of categories with category name and it's description.", @@ -4916,7 +4916,7 @@ "description": "Whether to add the memory completely asynchronously.", "title": "Async mode", "type": "boolean", - "default": false + "default": true }, "timestamp": { "description": "The timestamp of the memory. Format: Unix timestamp", @@ -5025,7 +5025,7 @@ "title": "Output format", "type": "string", "nullable": true, - "default": "v1.0", + "default": "v1.1", "description": "The search method supports two output formats: `v1.0` (default) and `v1.1`. We recommend using `v1.1` as `v1.0` will be deprecated soon." }, "org_id": { diff --git a/mem0/client/main.py b/mem0/client/main.py index c6b8f9240..73dabe52e 100644 --- a/mem0/client/main.py +++ b/mem0/client/main.py @@ -152,7 +152,8 @@ class MemoryClient: ) kwargs.pop("output_format") - kwargs.pop("async_mode", None) # Remove async_mode as it's now default + # Force async_mode to True for platform users (not configurable) + kwargs["async_mode"] = True # Force v1.1 format for all add operations kwargs["output_format"] = "v1.1" @@ -1007,7 +1008,8 @@ class AsyncMemoryClient: ) kwargs.pop("output_format") - kwargs.pop("async_mode", None) # Remove async_mode as it's now default + # Force async_mode to True for platform users (not configurable) + kwargs["async_mode"] = True # Force v1.1 format for all add operations kwargs["output_format"] = "v1.1"