Skip to content

Commit 1919059

Browse files
committed
fix(providers): forward userId from the providers API to executeProviderRequest
Large-attachment prep now needs request.userId for presigned URLs and access checks; the authenticated providers proxy has auth.userId but wasn't passing it, so oversized attachments failed for logged-in callers. Forwarding it makes large files work there and keeps the access check (verifyFileAccess) intact.
1 parent 0e692f6 commit 1919059

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

apps/sim/app/api/providers/route.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,7 @@ export const POST = withRouteHandler(async (request: NextRequest) => {
202202
responseFormat,
203203
workflowId,
204204
workspaceId,
205+
userId: auth.userId,
205206
stream,
206207
messages,
207208
environmentVariables,

0 commit comments

Comments
 (0)