fix: normalize gateway dev mode detection
This commit is contained in:
1 parent
2c070952e1
commit
36d88f6079
29 files changed
+95
-107
No files matched your search
@@ -71,10 +71,7 @@ describe("memory embedding batches", () => {
|
||||
await manager.sync({ force: true });
|
||||
|
||||
const status = manager.status();
|
||||
const totalTexts = embedBatch.mock.calls.reduce(
|
||||
(sum, call) => sum + (call[0]?.length ?? 0),
|
||||
0,
|
||||
);
|
||||
const totalTexts = embedBatch.mock.calls.reduce((sum, call) => sum + (call[0]?.length ?? 0), 0);
|
||||
expect(totalTexts).toBe(status.chunks);
|
||||
expect(embedBatch.mock.calls.length).toBeGreaterThan(1);
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user