mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 13:50:49 +00:00
fix(memory): load unconfigured lancedb metadata
This commit is contained in:
@@ -84,6 +84,19 @@ describe("memory-lancedb config", () => {
|
||||
}).toThrow("embedding config must include at least one setting");
|
||||
});
|
||||
|
||||
it("allows missing embedding config in the manifest so setup can discover fields", () => {
|
||||
const manifestResult = validateJsonSchemaValue({
|
||||
schema: manifest.configSchema,
|
||||
cacheKey: "memory-lancedb.manifest.missing-embedding",
|
||||
value: {},
|
||||
});
|
||||
|
||||
expect(manifestResult.ok).toBe(true);
|
||||
expect(() => {
|
||||
memoryConfigSchema.parse({});
|
||||
}).toThrow("embedding config required");
|
||||
});
|
||||
|
||||
it("rejects empty embedding providers", () => {
|
||||
expect(() => {
|
||||
memoryConfigSchema.parse({
|
||||
|
||||
@@ -126,7 +126,6 @@
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
},
|
||||
"required": ["embedding"]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user