Add async_mode default value to True
This commit is contained in:
+3
-3
@@ -4889,7 +4889,7 @@
|
|||||||
"title": "Output format",
|
"title": "Output format",
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"nullable": true,
|
"nullable": true,
|
||||||
"default": "v1.0"
|
"default": "v1.1"
|
||||||
},
|
},
|
||||||
"custom_categories": {
|
"custom_categories": {
|
||||||
"description": "A list of categories with category name and it's description.",
|
"description": "A list of categories with category name and it's description.",
|
||||||
@@ -4916,7 +4916,7 @@
|
|||||||
"description": "Whether to add the memory completely asynchronously.",
|
"description": "Whether to add the memory completely asynchronously.",
|
||||||
"title": "Async mode",
|
"title": "Async mode",
|
||||||
"type": "boolean",
|
"type": "boolean",
|
||||||
"default": false
|
"default": true
|
||||||
},
|
},
|
||||||
"timestamp": {
|
"timestamp": {
|
||||||
"description": "The timestamp of the memory. Format: Unix timestamp",
|
"description": "The timestamp of the memory. Format: Unix timestamp",
|
||||||
@@ -5025,7 +5025,7 @@
|
|||||||
"title": "Output format",
|
"title": "Output format",
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"nullable": true,
|
"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."
|
"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": {
|
"org_id": {
|
||||||
|
|||||||
+4
-2
@@ -152,7 +152,8 @@ class MemoryClient:
|
|||||||
)
|
)
|
||||||
kwargs.pop("output_format")
|
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
|
# Force v1.1 format for all add operations
|
||||||
kwargs["output_format"] = "v1.1"
|
kwargs["output_format"] = "v1.1"
|
||||||
@@ -1007,7 +1008,8 @@ class AsyncMemoryClient:
|
|||||||
)
|
)
|
||||||
kwargs.pop("output_format")
|
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
|
# Force v1.1 format for all add operations
|
||||||
kwargs["output_format"] = "v1.1"
|
kwargs["output_format"] = "v1.1"
|
||||||
|
|||||||
Reference in New Issue
Block a user