Skip to content

Commit 841efab

Browse files
committed
fix textGeneration typo
1 parent 1b71e5b commit 841efab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/inference/src/tasks/nlp/textGeneration.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ export async function textGeneration(
5252
);
5353

5454
const isValidOutput =
55-
Array.isArray(res) && res.every((x) => "generated°text" in x && typeof x?.generated_text === "string");
55+
Array.isArray(res) && res.every((x) => "generated_text" in x && typeof x?.generated_text === "string");
5656
if (!isValidOutput) {
5757
throw new InferenceOutputError("Expected Array<{generated_text: string}>");
5858
}

0 commit comments

Comments
 (0)