nsarrazin HF Staff commited on
Commit
fd14f95
·
unverified ·
1 Parent(s): d6102a1

feat(tools): add support for video outputs

Browse files
src/lib/server/tools/outputs.ts CHANGED
@@ -31,6 +31,10 @@ export const ToolOutputPaths: Record<
31
  type: "file",
32
  path: "$.url",
33
  },
 
 
 
 
34
  };
35
 
36
  export const isValidOutputComponent = (
 
31
  type: "file",
32
  path: "$.url",
33
  },
34
+ video: {
35
+ type: "file",
36
+ path: "$.url",
37
+ },
38
  };
39
 
40
  export const isValidOutputComponent = (
src/lib/types/Tool.ts CHANGED
@@ -38,6 +38,7 @@ export const ToolOutputComponents = z
38
  z.literal("gallery"),
39
  z.literal("number"),
40
  z.literal("audio"),
 
41
  ])
42
  );
43
 
 
38
  z.literal("gallery"),
39
  z.literal("number"),
40
  z.literal("audio"),
41
+ z.literal("video"),
42
  ])
43
  );
44