Skip to content

Commit e46eddb

Browse files
Add optional s3 parameter to request body handling in server API (#66)
1 parent 0d91eb0 commit e46eddb

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/server.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -587,6 +587,7 @@ server.after(() => {
587587
input: node.RequestSchema,
588588
webhook: z.string().optional(),
589589
convert_output: OutputConversionOptionsSchema.optional(),
590+
s3: PromptRequestSchema.shape.s3.optional(),
590591
});
591592

592593
type BodyType = z.infer<typeof BodySchema>;
@@ -624,7 +625,7 @@ server.after(() => {
624625
},
625626
},
626627
async (request, reply) => {
627-
const { id, input, webhook, convert_output } = request.body;
628+
const { id, input, webhook, convert_output, s3 } = request.body;
628629
const prompt = await node.generateWorkflow(input);
629630

630631
const resp = await fetch(
@@ -634,7 +635,7 @@ server.after(() => {
634635
headers: {
635636
"Content-Type": "application/json",
636637
},
637-
body: JSON.stringify({ prompt, id, webhook, convert_output }),
638+
body: JSON.stringify({ prompt, id, webhook, convert_output, s3 }),
638639
dispatcher: new Agent({
639640
headersTimeout: 0,
640641
bodyTimeout: 0,

0 commit comments

Comments
 (0)