feat: add source-pinned default-off prompt experiments with native comparisons
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user