There was an error while loading. Please reload this page.
1 parent 3ed4ee9 commit 51acdacCopy full SHA for 51acdac
1 file changed
app/api/routes/proxy.py
@@ -51,7 +51,7 @@ async def _get_allowed_provider_names(
51
forge_key = (
52
db.query(ForgeApiKey)
53
.options(joinedload(ForgeApiKey.allowed_provider_keys))
54
- .filter(ForgeApiKey.key == api_key, ForgeApiKey.is_active)
+ .filter(ForgeApiKey.key == f"forge-{api_key}", ForgeApiKey.is_active)
55
.first()
56
)
57
if forge_key is None:
0 commit comments