Skip to content

Commit b1ac358

Browse files
committed
make it compile
1 parent dd429a4 commit b1ac358

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

packages/agents/src/tools/imageToText.ts

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,12 @@ export const imageToTextTool: Tool = {
1515
if (typeof data === "string") throw "Input must be a blob.";
1616

1717
return (
18-
await inference.imageToText({
19-
data,
20-
})
21-
).generated_text;
18+
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
19+
(
20+
await inference.imageToText({
21+
data,
22+
})
23+
).generated_text!
24+
);
2225
},
2326
};

0 commit comments

Comments
 (0)