feat: use llm for targeted rewrite
This commit is contained in:
@@ -183,7 +183,7 @@ describe("workflow nodes", () => {
|
||||
expect(report.overall_status).toBe("fail");
|
||||
});
|
||||
|
||||
it("rewrites only the failing target area", () => {
|
||||
it("rewrites only the failing target area", async () => {
|
||||
const article = {
|
||||
title: "Bad title!!!",
|
||||
summary: "Original summary",
|
||||
@@ -193,7 +193,7 @@ describe("workflow nodes", () => {
|
||||
requires_user_confirmation: [],
|
||||
};
|
||||
|
||||
const rewritten = rewriteFailedSections({
|
||||
const rewritten = await rewriteFailedSections({
|
||||
article,
|
||||
factCard: confirmedFactCard,
|
||||
failedChecks: [
|
||||
|
||||
Reference in New Issue
Block a user