Browse Source

Merge pull request #859 from Yidadaa/Yidadaa-patch-1

fix: #853 fetch duplex errors
Yifei Zhang 2 năm trước cách đây
mục cha
commit
e49acda806
1 tập tin đã thay đổi với 5 bổ sung1 xóa
  1. 5 1
      app/api/openai/route.ts

+ 5 - 1
app/api/openai/route.ts

@@ -17,7 +17,7 @@ async function makeRequest(req: NextRequest) {
       },
       {
         status: 500,
-      },
+      }
     );
   }
 }
@@ -29,3 +29,7 @@ export async function POST(req: NextRequest) {
 export async function GET(req: NextRequest) {
   return makeRequest(req);
 }
+
+export const config = {
+  runtime: "edge",
+};