mirror of
https://github.com/paperclipai/paperclip.git
synced 2026-11-10 12:37:55 +01:00
fix(evals): inspect rendered secret-question placeholder
Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
1 parent
9b17aa2c98
commit
78d36b0899
1 file changed
+1
-1
@@ -18,6 +18,6 @@ export function boundSecretQuestion(value: unknown, b: SecretQuestionBinding, st
|
||||
const q = qs.questions[0]!;
|
||||
if (q.answerMode !== "single_select" || !q.required || !q.options?.length) return;
|
||||
return { row: { ...row, id: row.id }, questionSet: qs, question: { ...q, options: q.options },
|
||||
text: [qs.title, qs.description, q.header, q.prompt, q.helpText, q.customAnswer?.enabled ? q.customAnswer.label : undefined, qs.submitLabel].filter(Boolean).join("\n"),
|
||||
text: [qs.title, qs.description, q.header, q.prompt, q.helpText, q.customAnswer?.enabled ? q.customAnswer.label : undefined, q.customAnswer?.enabled ? q.customAnswer.placeholder : undefined, qs.submitLabel].filter(Boolean).join("\n"),
|
||||
payloadHash: createHash("sha256").update(JSON.stringify(row.payload)).digest("hex") };
|
||||
}
|
||||
Reference in new issue
Block a user