mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 06:50:43 +00:00
test(memory-lancedb): mock embedding transport in forget test
This commit is contained in:
@@ -2196,7 +2196,7 @@ describe("memory plugin e2e", () => {
|
||||
vi.resetModules();
|
||||
vi.doMock("openai", () => ({
|
||||
default: class MockOpenAI {
|
||||
embeddings = { create: vi.fn(async () => ({ data: [{ embedding: [0.1, 0.2, 0.3] }] })) };
|
||||
post = vi.fn(async () => ({ data: [{ embedding: [0.1, 0.2, 0.3] }] }));
|
||||
},
|
||||
}));
|
||||
vi.doMock("@lancedb/lancedb", () => ({
|
||||
|
||||
Reference in New Issue
Block a user