mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 15:30:47 +00:00
test: stabilize QA session memory ranking
This commit is contained in:
@@ -834,7 +834,9 @@ describe("qa mock openai server", () => {
|
||||
}),
|
||||
});
|
||||
expect(memory.status).toBe(200);
|
||||
expect(await memory.text()).toContain('"name":"memory_search"');
|
||||
const memoryText = await memory.text();
|
||||
expect(memoryText).toContain('"name":"memory_search"');
|
||||
expect(memoryText).toContain('\\"corpus\\":\\"sessions\\"');
|
||||
|
||||
const memoryFollowup = await fetch(`${server.baseUrl}/v1/responses`, {
|
||||
method: "POST",
|
||||
|
||||
@@ -1373,6 +1373,7 @@ async function buildResponsesPayload(
|
||||
return buildToolCallEventsWithArgs("memory_search", {
|
||||
query: "current Project Nebula codename ORBIT-10",
|
||||
maxResults: 3,
|
||||
corpus: "sessions",
|
||||
});
|
||||
}
|
||||
const results = Array.isArray(toolJson?.results)
|
||||
|
||||
Reference in New Issue
Block a user