Skip to content

Commit

Permalink
hotfix
Browse files Browse the repository at this point in the history
  • Loading branch information
lloydzhou committed Jul 4, 2024
1 parent b9ffd50 commit 7a5596b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/api/anthropic/[...path]/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,9 @@ async function request(req: NextRequest) {
const jsonBody = JSON.parse(clonedBody) as { model?: string };

// not undefined and is false
if (isModelAvailableInServer(jsonBody?.model ?? "")) {
if (
isModelAvailableInServer(serverConfig.customModels, jsonBody?.model)
) {
return NextResponse.json(
{
error: true,
Expand Down

0 comments on commit 7a5596b

Please sign in to comment.