We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2bac174 commit cd75461Copy full SHA for cd75461
app/api/openai.ts
@@ -6,7 +6,7 @@ import { NextRequest, NextResponse } from "next/server";
6
import { auth } from "./auth";
7
import { requestOpenai } from "./common";
8
9
-const ALLOWD_PATH = new Set(Object.values(OpenaiPath));
+const ALLOWED_PATH = new Set(Object.values(OpenaiPath));
10
11
function getModels(remoteModelRes: OpenAIListModelResponse) {
12
const config = getServerSideConfig();
@@ -34,7 +34,7 @@ export async function handle(
34
35
const subpath = params.path.join("/");
36
37
- if (!ALLOWD_PATH.has(subpath)) {
+ if (!ALLOWED_PATH.has(subpath)) {
38
console.log("[OpenAI Route] forbidden path ", subpath);
39
return NextResponse.json(
40
{
0 commit comments