From 3032ae31983ac584c989d28d7011c64ad3b8e647 Mon Sep 17 00:00:00 2001 From: nai-degen Date: Mon, 12 Aug 2024 19:31:53 -0500 Subject: [PATCH] express route matching is a pain in the ass --- src/proxy/aws.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/proxy/aws.ts b/src/proxy/aws.ts index 6b81375..48c663e 100644 --- a/src/proxy/aws.ts +++ b/src/proxy/aws.ts @@ -8,7 +8,7 @@ import { awsMistral } from "./aws-mistral"; import { AwsBedrockKey, keyPool } from "../shared/key-management"; const awsRouter = Router(); -awsRouter.get("/:vendor?/models", addV1, handleModelsRequest); +awsRouter.get(["/:vendor?/v1/models", "/:vendor?/models"], handleModelsRequest); awsRouter.use("/claude", addV1, awsClaude); awsRouter.use("/mistral", addV1, awsMistral);