Add missing await

This commit is contained in:
Wolfsblvt 2024-09-05 00:34:52 +02:00
parent 3b10ae00c7
commit d62f18b523

View File

@ -938,7 +938,7 @@ async function classifyCallback(/** @type {{api: string?, prompt: string?}} */ {
return '';
}
const label = getExpressionLabel(text, expressionApi, { customPrompt: prompt });
const label = await getExpressionLabel(text, expressionApi, { customPrompt: prompt });
console.debug(`Classification result for "${text}": ${label}`);
return label;
}