fix: add RedisCloud search module check (#3192)
Co-authored-by: Saket Aryan <94069182+whysosaket@users.noreply.github.com>
This commit is contained in:
@@ -520,6 +520,11 @@ mode: "wide"
|
||||
|
||||
<Tab title="TypeScript">
|
||||
|
||||
<Update label="2025-08-04" description="v2.1.37">
|
||||
**New Features:**
|
||||
- **OSS:** Added `RedisCloud` search module check
|
||||
</Update>
|
||||
|
||||
<Update label="2025-07-08" description="v2.1.36">
|
||||
**New Features:**
|
||||
- **Client:** Added `structured_data_schema` param to `add` method.
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "mem0ai",
|
||||
"version": "2.1.36",
|
||||
"version": "2.1.37",
|
||||
"description": "The Memory Layer For Your AI Apps",
|
||||
"main": "./dist/index.js",
|
||||
"module": "./dist/index.mjs",
|
||||
|
||||
@@ -254,7 +254,11 @@ export class RedisDB implements VectorStore {
|
||||
for (let i = 0; i < module.length; i += 2) {
|
||||
moduleMap.set(module[i], module[i + 1]);
|
||||
}
|
||||
return moduleMap.get("name")?.toLowerCase() === "search";
|
||||
const moduleName = moduleMap.get("name");
|
||||
return (
|
||||
moduleName?.toLowerCase() === "search" ||
|
||||
moduleName?.toLowerCase() === "searchlight"
|
||||
);
|
||||
});
|
||||
|
||||
if (!hasSearch) {
|
||||
|
||||
Reference in New Issue
Block a user