feat: add source-pinned default-off prompt experiments with native comparisons

This commit is contained in:
Agent Workbench Dev
2026-10-31 06:16:36 +08:00
parent 48635be1ce
commit 482acdeff1
47 changed files with 148346 additions and 36 deletions
+1 -1
View File
@@ -4,7 +4,7 @@ import { requestMetrics } from './model-request.mjs';
export const ENGINE_RUN_ACTIVE = new Set(['queued', 'starting', 'initializing', 'running', 'waiting_tool', 'closing', 'stopping']);
export function selectedEngineInput(input) {
if (!input || typeof input !== 'object' || Array.isArray(input)
|| Object.keys(input).some(key => !['id', 'root', 'controlledSha256'].includes(key))
|| Object.keys(input).some(key => !['id', 'root', 'controlledSha256', 'strategy'].includes(key))
|| input.id !== 'deepseek-harness' || typeof input.root !== 'string'
|| !/^[a-f0-9]{64}$/.test(input.controlledSha256 ?? '')) throw engineError('请选择已经检测并封存身份的受控DeepSeek引擎。', 400);
return structuredClone(input);