We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0d91eb0 commit e46eddbCopy full SHA for e46eddb
src/server.ts
@@ -587,6 +587,7 @@ server.after(() => {
587
input: node.RequestSchema,
588
webhook: z.string().optional(),
589
convert_output: OutputConversionOptionsSchema.optional(),
590
+ s3: PromptRequestSchema.shape.s3.optional(),
591
});
592
593
type BodyType = z.infer<typeof BodySchema>;
@@ -624,7 +625,7 @@ server.after(() => {
624
625
},
626
627
async (request, reply) => {
- const { id, input, webhook, convert_output } = request.body;
628
+ const { id, input, webhook, convert_output, s3 } = request.body;
629
const prompt = await node.generateWorkflow(input);
630
631
const resp = await fetch(
@@ -634,7 +635,7 @@ server.after(() => {
634
635
headers: {
636
"Content-Type": "application/json",
637
- body: JSON.stringify({ prompt, id, webhook, convert_output }),
638
+ body: JSON.stringify({ prompt, id, webhook, convert_output, s3 }),
639
dispatcher: new Agent({
640
headersTimeout: 0,
641
bodyTimeout: 0,
0 commit comments