Skip to content

Commit 51acdac

Browse files
authored
Update API key filtering to include 'forge-' prefix (#12)
1 parent 3ed4ee9 commit 51acdac

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

app/api/routes/proxy.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ async def _get_allowed_provider_names(
5151
forge_key = (
5252
db.query(ForgeApiKey)
5353
.options(joinedload(ForgeApiKey.allowed_provider_keys))
54-
.filter(ForgeApiKey.key == api_key, ForgeApiKey.is_active)
54+
.filter(ForgeApiKey.key == f"forge-{api_key}", ForgeApiKey.is_active)
5555
.first()
5656
)
5757
if forge_key is None:

0 commit comments

Comments
 (0)