Skip to content

Commit 5231c94

Browse files
fix(ai-gateway): bypass access check for direct BYOK (#2982)
Per apps/web/src/lib/ai-gateway/AGENTS.md, direct BYOK models must not be passed through checkOrganizationModelRestrictions since enabling them already requires explicit admin action. Co-authored-by: kiloconnect[bot] <240665456+kiloconnect[bot]@users.noreply.github.com>
1 parent ba5021f commit 5231c94

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

apps/web/src/lib/ai-gateway/providers/get-provider.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ async function checkDirectBYOK(
7474
},
7575
} satisfies Provider,
7676
userByok,
77-
bypassAccessCheck: false,
77+
bypassAccessCheck: true,
7878
};
7979
}
8080

0 commit comments

Comments
 (0)