mirror of
https://github.com/ThearchyHelios/AgentLab.git
synced 2026-11-15 02:01:57 +00:00
check-evals:接住画布页起画布对话的 POST /conversations,免得偶发地漏到服务端
「口径命中与重复度」一节点「提取模板」会去画布(/studio/wf-drafted),画布页随后给这张图起一段画布对话
(POST /conversations {kind: canvas})。页面不关,这一下早晚不定:赶在最后那一节「写请求都在浏览器层拦下」之前
发出去就算漏到服务端。在 main 上连跑两次一次挂一次过,和这一轮的改动无关。照 check-ledger 的写法在假接口里接住
(交回一段空的画布对话),不进写请求的清单——不是评测页发的。改后连跑两次都过。
This commit is contained in:
@@ -256,6 +256,9 @@ function reply(state, method, path, url, body) {
|
||||
if (out) return out
|
||||
}
|
||||
if (path === '/auth/me' && state.me) return { json: state.me }
|
||||
// 「提取模板」去画布之后,画布页给这张图起一段画布对话(POST /conversations):早晚不定,以前偶尔赶在检查结束前发出去、
|
||||
// 漏到服务端。照 check-ledger 的写法在这里接住,不进写请求的清单(不是评测页发的)
|
||||
if (method === 'POST' && path === '/conversations') return { json: { id: 'cv-eval', kind: body?.kind ?? 'canvas', title: '', turns: [] } }
|
||||
if (method === 'GET' && path === '/datasources') return { json: [DS] }
|
||||
if (method === 'GET' && path === '/evals/suites') return { json: { suites: state.suites } }
|
||||
if (method === 'POST' && path === '/evals/suites') {
|
||||
|
||||
Reference in New Issue
Block a user