fix(mindspace): use UUIDs for repair replies
This commit is contained in:
@@ -235,7 +235,9 @@ export async function maybeRepairH5HtmlAfterFinish({
|
||||
repairAttemptsBySession.set(key, attempts + 1);
|
||||
|
||||
const prompt = buildH5HtmlRepairPrompt(evaluation);
|
||||
const requestId = `h5-html-repair-${crypto.randomUUID()}`;
|
||||
// goosed validates request_id as a UUID, so repair metadata must not be
|
||||
// encoded by prefixing the id. The message metadata below carries the type.
|
||||
const requestId = crypto.randomUUID();
|
||||
const userMessage = {
|
||||
role: 'user',
|
||||
content: [{ type: 'text', text: prompt }],
|
||||
|
||||
Reference in New Issue
Block a user