add response versioning support in messages for regeneration improvements
This commit is contained in:
@@ -151,7 +151,11 @@ test("images feed dedicated vision, cache, streamed reasoning, reload and shared
|
||||
const exported = await (await s.api("/exports/workspace")).json();
|
||||
assert.deepEqual(exported.workspace.chats[0].messages[0].attachments, uploads);
|
||||
const botId = history.messages.at(-1).id;
|
||||
assert.equal((await s.api(`/chats/${chatId}/messages/${botId}/retry`, {model: "qwen3:14b"})).status, 200);
|
||||
const retryWire = await (await s.api(`/chats/${chatId}/messages/${botId}/retry/stream`, {model: "qwen3:14b", reasoning: true})).text();
|
||||
assert.match(retryWire, /event: chunk/);
|
||||
assert.match(retryWire, /event: thinking/);
|
||||
assert.match(retryWire, /event: done/);
|
||||
assert.ok(s.requests.at(-1).messages.some(v => v.content.includes("A blue screenshot")));
|
||||
assert.equal(s.requests.filter(v => v.model === "gemma3:4b").length, 2, "Retry reuses vision cache");
|
||||
const branchResponse = await s.api(`/chats/${chatId}/messages/${botId}/branch`, {confirmed: true});
|
||||
assert.equal(branchResponse.status, 200);
|
||||
|
||||
Reference in New Issue
Block a user