Skip to content

Commit cd75461

Browse files
authored
fix: correct typo in variable name from ALLOWD_PATH to ALLOWED_PATH
1 parent 2bac174 commit cd75461

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/api/openai.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { NextRequest, NextResponse } from "next/server";
66
import { auth } from "./auth";
77
import { requestOpenai } from "./common";
88

9-
const ALLOWD_PATH = new Set(Object.values(OpenaiPath));
9+
const ALLOWED_PATH = new Set(Object.values(OpenaiPath));
1010

1111
function getModels(remoteModelRes: OpenAIListModelResponse) {
1212
const config = getServerSideConfig();
@@ -34,7 +34,7 @@ export async function handle(
3434

3535
const subpath = params.path.join("/");
3636

37-
if (!ALLOWD_PATH.has(subpath)) {
37+
if (!ALLOWED_PATH.has(subpath)) {
3838
console.log("[OpenAI Route] forbidden path ", subpath);
3939
return NextResponse.json(
4040
{

0 commit comments

Comments
 (0)