This commit is contained in:
sijinhui
2024-09-19 22:31:21 +08:00
parent c6c78b7798
commit 8fedb17183
20 changed files with 26 additions and 66 deletions

View File

@@ -1,5 +1,5 @@
import { NextRequest, NextResponse } from "next/server";
import { auth, getIP } from "@/app/api/auth";
import { auth } from "@/app/api/auth";
import { ModelProvider } from "@/app/constant";
import { requestLog } from "@/app/api/common";

View File

@@ -9,7 +9,7 @@ import {
import { prettyObject } from "@/app/utils/format";
import { NextRequest, NextResponse } from "next/server";
import { auth } from "./auth";
import { requestOpenai, requestLog } from "./common";
import { requestOpenai } from "./common";
// const ALLOWED_PATH = new Set(Object.values({ ...OpenaiPath, ...AZURE_PATH }));
const ALLOWD_PATH = new Set(Object.values(OpenaiPath));